/* Clear Head Events — frontend */
.che{
	--che-purple:#5b21b6; --che-purple-2:#7c3aed;
	--che-ink:#111014; --che-soft:#5c5763;
	--che-tint:#f4effc; --che-line:#e3d9f7; --che-radius:16px;
	color:var(--che-ink); font-size:16px; line-height:1.55;
	font-family:'Roboto',system-ui,sans-serif;
}
.che *{box-sizing:border-box}
.che button{font:inherit;cursor:pointer;background:none;border:none;color:inherit}

/* ---------- tabs: recessed track, sliding pill (Option A) ---------- */
.che-tabs{
	position:relative;display:flex;width:100%;margin:0 0 26px;padding:5px;
	border-radius:999px;background:#efe9f8;
	box-shadow:inset 0 2px 5px rgba(60,16,132,.16), inset 0 -1px 0 rgba(255,255,255,.6);
}
.che-tabs-thumb{
	position:absolute;top:5px;bottom:5px;left:5px;z-index:1;
	width:calc(50% - 5px);border-radius:999px;
	background:linear-gradient(155deg,var(--che-purple-2),var(--che-purple));
	box-shadow:0 3px 10px rgba(91,33,182,.4), inset 0 1px 0 rgba(255,255,255,.25);
	transition:transform .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1);
}
.che-tab{
	position:relative;z-index:2;flex:1;text-align:center;
	font-size:14.5px;font-weight:600;padding:12px 18px;border-radius:999px;
	color:var(--che-soft);background:none;transition:color .25s;
}
.che-tab.che-on{color:#fff}

@media (max-width:900px){
	.che-tabs{padding:4px}
	.che-tabs-thumb{top:4px;bottom:4px;left:4px;width:calc(50% - 4px)}
	.che-tab{font-size:13.5px;padding:11px 12px}
}
@media (max-width:420px){
	.che-tab{font-size:12.5px;padding:10px 8px}
}

/* ---------- list / grid ---------- */
.che-list{display:flex;flex-direction:column;gap:22px}
.che-layout-grid .che-list{display:grid;gap:22px}
.che-layout-grid.che-cols-2 .che-list{grid-template-columns:repeat(2,1fr)}
.che-layout-grid.che-cols-3 .che-list{grid-template-columns:repeat(3,1fr)}

/* ---------- card ---------- */
.che-card{
	display:grid;grid-template-columns:1fr 1fr;
	border:1.5px solid var(--che-ink);border-radius:var(--che-radius);
	overflow:hidden;background:#fff;
}
.che-card.che-hidden{display:none}
.che-past{opacity:.92}
.che-past .che-slider{filter:saturate(.55)}

/* grid layout: card stacks (slider on top), like mobile */
.che-layout-grid .che-card{grid-template-columns:1fr}
.che-layout-grid .che-slider{order:-1;min-height:230px}
.che-layout-grid .che-info{padding:24px 22px}
.che-layout-grid .che-title{font-size:20px}

.che-info{padding:32px 30px;display:flex;flex-direction:column;gap:14px}
.che-badges{display:flex;gap:7px;flex-wrap:wrap}
.che-badge{
	font-family:'Roboto Mono','Roboto Mono',ui-monospace,monospace;font-size:10px;font-weight:600;
	letter-spacing:.1em;padding:5px 10px;border-radius:6px;
}
.che-badge-upcoming{background:#e7f7ee;color:#0e7a45;border:1px solid #c5ebd6}
.che-badge-past{background:#f1f1f3;color:#77747f;border:1px solid #e2e1e6}
.che-badge-custom{background:var(--che-tint);color:var(--che-purple);border:1px solid var(--che-line)}

.che-title{font-size:24px;font-weight:800;letter-spacing:-.02em;line-height:1.15;margin:0}
.che-desc{color:var(--che-soft);font-size:14.5px;margin:0}
.che-metas{display:flex;gap:14px 20px;flex-wrap:wrap;margin-top:auto;padding-top:16px;border-top:1px solid var(--che-line)}
.che-meta{padding-right:22px;border-right:1px solid var(--che-line)}
.che-meta:last-child{padding-right:0;border-right:none}
.che-meta-k{font-family:'Roboto Mono',ui-monospace,monospace;font-size:9.5px;letter-spacing:.13em;color:var(--che-soft)}
.che-meta-v{font-weight:600;font-size:13.5px;margin-top:4px}

/* CTA moved to white side when overlays are hidden */
.che-side-cta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding-top:10px}
.che-side-date{font-family:'Roboto Mono',ui-monospace,monospace;font-weight:700;font-size:15px}
.che-side-count{font-family:'Roboto Mono',ui-monospace,monospace;font-size:11px;color:var(--che-purple);background:var(--che-tint);border:1px solid var(--che-line);padding:5px 11px;border-radius:999px}

/* ---------- slider ---------- */
.che-slider{position:relative;background:var(--che-purple);min-height:340px;overflow:hidden;color:#fff}
.che-slide{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .45s ease}
.che-slide.che-on{opacity:1;pointer-events:auto}
.che-slide-blank{position:relative;background:linear-gradient(150deg,var(--che-purple),#3b1683)}
.che .che-slider img.che-slide-img{
	position:absolute!important;inset:0!important;
	width:100%!important;height:100%!important;
	max-width:100%!important;max-height:100%!important;
	object-fit:contain!important;object-position:center!important;
	background:linear-gradient(150deg,var(--che-purple),#2e0a5f);
	margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
}
.che-slide[data-overlay="1"] .che-slide-img{opacity:1}
.che-slide[data-overlay="1"]::after{
	content:'';position:absolute;inset:0;z-index:1;
	background:linear-gradient(180deg,rgba(17,16,20,.28) 0%,rgba(17,16,20,0) 26%,rgba(23,9,46,0) 45%,rgba(23,9,46,.85) 100%);
}
.che-broken .che-slide-img{display:none}

.che-media-fallback{
	top:auto;bottom:70px;background:rgba(0,0,0,.5);padding:5px 12px;border-radius:999px;font-size:11px;
}
.che-media-missing{
	position:absolute;inset:0;display:grid;place-items:center;
	font-family:'Roboto Mono',ui-monospace,monospace;font-size:12px;opacity:.75;
}

/* overlay text */
.che-overlay{
	position:absolute;inset:0;z-index:2;padding:26px;
	display:flex;flex-direction:column;gap:12px;pointer-events:none;
}
.che-overlay a{pointer-events:auto}
.che-count{
	font-family:'Roboto Mono',ui-monospace,monospace;font-size:11px;align-self:flex-start;
	background:rgba(255,255,255,.16);backdrop-filter:blur(6px);
	padding:6px 12px;border-radius:999px;
}
.che-date-wrap{margin-top:auto}
.che-date{line-height:1.05;text-shadow:0 2px 14px rgba(0,0,0,.5)}
.che-date-big{font-weight:900;font-size:40px;letter-spacing:-.02em;display:block}
.che-date-small{display:block;font-family:'Roboto Mono',ui-monospace,monospace;font-size:13px;font-weight:600;letter-spacing:.08em;margin-top:5px}
.che-cta{
	display:inline-block;background:#fff;color:var(--che-purple)!important;
	font-weight:700;font-size:14.5px;padding:13px 26px;border-radius:999px;
	align-self:flex-start;text-decoration:none;box-shadow:0 6px 18px rgba(0,0,0,.3);
	transition:transform .15s;
}
.che-cta:hover{transform:translateY(-2px)}
.che-cta-solid{background:var(--che-purple);color:#fff!important;box-shadow:none}
.che-cta-solid:hover{background:var(--che-purple-2)}

/* video slide: keep overlay text above the player bar */
.che-slide-video .che-overlay{padding-bottom:86px}
.che-slide-video .che-dots{bottom:74px}

/* controls */
.che-counter{
	position:absolute;z-index:3;top:14px;right:16px;
	font-family:'Roboto Mono',ui-monospace,monospace;font-size:10.5px;
	background:rgba(0,0,0,.35);backdrop-filter:blur(6px);padding:4px 10px;border-radius:999px;
}
.che-arr{
	position:absolute;z-index:3;top:50%;transform:translateY(-50%);
	width:36px;height:36px;border-radius:50%;color:#fff;font-size:17px;
	background:rgba(255,255,255,.18);backdrop-filter:blur(6px);transition:background .15s;
}
.che-arr:hover{background:rgba(255,255,255,.32)}
.che-prev{left:12px}.che-next{right:12px}
.che-dots{position:absolute;z-index:3;bottom:16px;right:18px;display:flex;gap:7px}
.che-dot{width:7px;height:7px;border-radius:99px;background:rgba(255,255,255,.45);padding:0;transition:.2s}
.che-dot.che-on{background:#fff;width:20px}

/* ---------- custom video player ---------- */
.che .che-slider video.che-video{
	position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
	object-fit:contain!important;background:transparent!important;
	opacity:0;transition:opacity .2s;
}
.che-slide-video.che-poster-ready .che-video{opacity:0}
.che-slide-video.che-poster-failed .che-video{opacity:1}
.che-slide-video.che-playing .che-video{opacity:1!important}
.che-player-hit{position:absolute;inset:0;z-index:2;display:grid;place-items:center;cursor:pointer}
.che-playing .che-player-hit .che-play{opacity:0;transform:scale(.85)}
.che-play{
	width:66px;height:66px;border-radius:50%;position:relative;
	background:rgba(255,255,255,.14);backdrop-filter:blur(10px);
	border:1.5px solid rgba(255,255,255,.55);display:grid;place-items:center;
	transition:.25s;
}
.che-play::before{content:'';position:absolute;inset:-11px;border-radius:50%;border:1.5px solid rgba(255,255,255,.18)}
.che-play-tri{width:0;height:0;border-left:17px solid #fff;border-top:10px solid transparent;border-bottom:10px solid transparent;margin-left:5px}
.che-player-bar{
	position:absolute;z-index:3;left:14px;right:14px;bottom:14px;
	background:rgba(20,8,44,.55);backdrop-filter:blur(12px);
	border:1px solid rgba(255,255,255,.14);border-radius:12px;
	padding:9px 13px;display:flex;align-items:center;gap:10px;
	opacity:0;transition:opacity .25s;pointer-events:none;
}
.che-playing .che-player-bar,.che-slide-video:hover .che-player-bar{opacity:1;pointer-events:auto}
.che-pb-play{width:14px;height:14px;position:relative;padding:0;flex:none}
.che-pb-play::before{
	content:'';position:absolute;top:50%;left:2px;transform:translateY(-50%);
	width:0;height:0;border-left:11px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent;
}
.che-playing .che-pb-play::before{
	border:none;left:2px;top:0;transform:none;
	width:4px;height:14px;background:#fff;box-shadow:7px 0 0 #fff;
}
.che-pb-cur,.che-pb-dur{font-family:'Roboto Mono',ui-monospace,monospace;font-size:10px;opacity:.85;flex:none}
.che-pb-track{flex:1;height:4px;border-radius:99px;background:rgba(255,255,255,.25);position:relative;cursor:pointer}
.che-pb-fill{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--che-purple-2);border-radius:99px}
.che-pb-fill::after{content:'';position:absolute;right:-5px;top:50%;transform:translateY(-50%);width:11px;height:11px;border-radius:50%;background:#fff}
.che-pb-mute,.che-pb-full{font-size:12px;opacity:.85;padding:0;flex:none}

/* embeds */
.che-embed{position:absolute;inset:0}
.che-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.che-embed-poster{position:absolute;inset:0;display:grid;place-items:center;cursor:pointer;background:linear-gradient(150deg,#3b1683,#17092e)}

/* load more */
.che-more{
	display:block;width:100%;margin-top:20px;padding:14px;
	border:1.5px solid var(--che-ink);border-radius:999px;background:#fff;
	font-weight:700;font-size:14.5px;color:var(--che-ink);transition:.15s;
}
.che-more:hover{background:var(--che-ink);color:#fff}
.che-more.che-hidden{display:none}

/* ---------- states ---------- */
.che-empty,.che-error{
	border:1.5px dashed var(--che-line);border-radius:var(--che-radius);
	padding:42px 24px;text-align:center;color:var(--che-soft);font-size:15px;
}
.che-error{border-color:#f3c8c8;color:#a33}

/* ---------- mobile: ALWAYS stacked card ---------- */
@media (max-width:900px){
	.che-layout-grid.che-cols-2 .che-list,
	.che-layout-grid.che-cols-3 .che-list{grid-template-columns:1fr}
	.che-card{grid-template-columns:1fr}
	.che-slider{order:-1;min-height:280px}
	.che-info{padding:22px 18px}
	.che-title{font-size:20px}
	.che-cta{align-self:stretch;text-align:center}
	.che-overlay{padding:20px 18px}
	.che-date-big{font-size:30px}
	.che-arr{width:32px;height:32px}
}

@media (prefers-reduced-motion:reduce){
	.che-slide{transition:none}
	.che-cta:hover{transform:none}
}
.che :focus-visible{outline:2.5px solid var(--che-purple);outline-offset:2px;border-radius:4px}
