/* Chagua Regions 5.5 – election pages and home.
   Override the --chel-* tokens in the theme to restyle. */
.chagua-el {
	--chel-green: #006b3c;
	--chel-green-2: #087f5b;
	--chel-deep: #04361f;
	--chel-red: #b51d2a;
	--chel-ink: #14201a;
	--chel-muted: #5b6b63;
	--chel-line: #e3e9e5;
	--chel-soft: #f4f8f5;
	--chel-card: #fff;
	--chel-radius: 16px;
	--chel-shadow: 0 1px 2px rgba(4, 54, 31, .06), 0 8px 24px rgba(4, 54, 31, .08);
	color: var(--chel-ink);
	line-height: 1.5;
	max-width: 1180px;
	margin: 0 auto 48px;
	padding: 0 16px;
	box-sizing: border-box;
	font-variant-numeric: tabular-nums;
	container-type: inline-size;
	container-name: chel;
}
/* Block themes: break out of the narrow text column. */
.chagua-el.alignwide { width: 100%; max-width: 1180px; margin-left: auto !important; margin-right: auto !important; }
.chagua-el *, .chagua-el *::before, .chagua-el *::after { box-sizing: border-box; }
.chagua-el [hidden] { display: none !important; }

/* ---------- Hero ---------- */
.chagua-el-hero {
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	color: #fff;
	background:
		radial-gradient(900px 380px at 110% -20%, rgba(255, 255, 255, .14), transparent 60%),
		radial-gradient(600px 300px at -10% 120%, rgba(181, 29, 42, .35), transparent 60%),
		linear-gradient(135deg, var(--chel-deep) 0%, var(--chel-green) 55%, var(--chel-green-2) 100%);
	box-shadow: 0 18px 40px rgba(4, 54, 31, .25);
	margin: 8px 0 0;
}
.chagua-el-hero::after { /* flag stripe */
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
	background: linear-gradient(to bottom, #111 0 25%, #fff 25% 37%, var(--chel-red) 37% 63%, #fff 63% 75%, var(--chel-green) 75% 100%);
}
.chagua-el-hero::before { /* subtle pattern */
	content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
	background-image: radial-gradient(#fff 1px, transparent 1.4px);
	background-size: 18px 18px;
	mask-image: linear-gradient(to left, #000, transparent 70%);
	-webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
}
.chagua-el-hero-in {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center;
	padding: 40px 40px 56px;
}
.chagua-el-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: rgba(255, 255, 255, .85);
}
.chagua-el-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--chel-red); box-shadow: 0 -3px 0 #111, 0 3px 0 #fff; }
.chagua-el-title { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.chagua-el-intro { margin: 0 0 18px; font-size: 1.05rem; color: rgba(255, 255, 255, .88); max-width: 46ch; }
.chagua-el-period { margin: 0 0 16px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .14); font-size: .9rem; }
.chagua-el-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.chagua-el-stat { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(4px); }
.chagua-el-stat strong { display: block; font-size: 1.35rem; line-height: 1.1; font-weight: 800; color: #fff; }
.chagua-el-stat span { display: block; font-size: .74rem; color: rgba(255, 255, 255, .8); margin-top: 3px; }

/* Countdown */
.chagua-el-countdown { text-align: center; }
.chagua-el-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.chagua-el-unit {
	padding: 16px 6px 12px; border-radius: 16px;
	background: rgba(255, 255, 255, .96); color: var(--chel-deep);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .18), inset 0 -4px 0 rgba(0, 107, 60, .12);
}
.chagua-el-num { display: block; font-size: clamp(1.7rem, 4.2vw, 2.9rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.chagua-el-unit:first-child .chagua-el-num { color: var(--chel-red); }
.chagua-el-lbl { display: block; margin-top: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--chel-muted); }
.chagua-el-live { margin: 0; padding: 18px; border-radius: 16px; background: #fff; color: var(--chel-deep); font-size: 1.15rem; font-weight: 800; }
.chagua-el-date { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .9); }
.chagua-el-hero-compact .chagua-el-hero-in { grid-template-columns: 1fr; padding: 24px 20px 32px; text-align: center; }
.chagua-el-hero-compact .chagua-el-eyebrow { justify-content: center; }

/* ---------- Page nav ---------- */
.chagua-el-nav {
	display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 4px; margin: 0 0 4px;
	scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.chagua-el-pill {
	flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px;
	background: #fff; border: 1px solid var(--chel-line); color: var(--chel-ink) !important; text-decoration: none !important;
	font-weight: 600; font-size: .92rem; transition: all .15s ease;
}
.chagua-el-pill:hover { border-color: var(--chel-green); color: var(--chel-green) !important; }
.chagua-el-pill.is-current { background: var(--chel-green); border-color: var(--chel-green); color: #fff !important; box-shadow: 0 4px 12px rgba(0, 107, 60, .25); }

/* ---------- Layout ---------- */
.chagua-el-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 18px; }

/* ---------- Filter card ---------- */
.chagua-el-side { display: grid; gap: 18px; min-width: 0; }
.chagua-el-filter {
	background: var(--chel-card); border: 1px solid var(--chel-line); border-radius: var(--chel-radius);
	box-shadow: var(--chel-shadow); padding: 20px; margin: 0;
}
.chagua-el-filter-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--chel-line); }
.chagua-el-filter-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--chel-soft); color: var(--chel-green); }
.chagua-el-filter h3 { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--chel-ink); }
.chagua-el-filter-head p { margin: 2px 0 0; font-size: .85rem; color: var(--chel-muted); }
.chagua-el-fields { display: grid; gap: 12px; }
.chagua-el-field { margin: 0; }
.chagua-el-field label { display: block; margin: 0 0 5px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--chel-muted); }
.chagua-el-field select, .chagua-el-field input {
	width: 100%; min-height: 46px; padding: 10px 12px; margin: 0;
	border: 1.5px solid #cfd9d3; border-radius: 10px; background-color: #fff; color: var(--chel-ink);
	font: inherit; font-size: 1rem; line-height: 1.2; box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
.chagua-el-field select {
	appearance: none; -webkit-appearance: none; padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23006b3c' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.chagua-el-field select:disabled { background-color: var(--chel-soft); color: #9aa7a0; cursor: not-allowed; }
.chagua-el-field select:focus, .chagua-el-field input:focus { outline: none; border-color: var(--chel-green); box-shadow: 0 0 0 4px rgba(0, 107, 60, .15); }
.chagua-el-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.chagua-el-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px;
	border: 0; border-radius: 10px; background: var(--chel-green); color: #fff !important; text-decoration: none !important;
	font: inherit; font-weight: 700; cursor: pointer; flex: 1 1 auto; transition: background .15s, transform .1s;
}
.chagua-el-btn:hover { background: var(--chel-deep); }
.chagua-el-btn:active { transform: translateY(1px); }
.chagua-el-btn-ghost { background: transparent; color: var(--chel-green) !important; border: 2px solid var(--chel-green); flex: none; }
.chagua-el-btn-ghost:hover { background: var(--chel-soft); }
.chagua-el-reset { color: var(--chel-muted) !important; font-weight: 600; font-size: .9rem; }
.chagua-el-ballot-link { flex-basis: 100%; font-weight: 700; font-size: .92rem; color: var(--chel-red) !important; }
.chagua-el a:focus-visible, .chagua-el button:focus-visible { outline: 3px solid var(--chel-green); outline-offset: 2px; }

/* ---------- Results ---------- */
.chagua-el-results { min-width: 0; transition: opacity .2s; }
.chagua-el-results.is-loading { opacity: .45; pointer-events: none; }
.chagua-el-summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin: 0 0 14px; }
.chagua-el-summary p { margin: 0; }
.chagua-el-summary strong { font-size: 1.2rem; font-weight: 800; }
.chagua-el-summary span { color: var(--chel-muted); }
.chagua-el-order { font-size: .82rem; color: var(--chel-muted); }
.chagua-el-order::before { content: "⇄ "; color: var(--chel-green); font-weight: 700; }
.chagua-el-error { padding: 10px 14px; border-radius: 10px; background: #fdecee; color: var(--chel-red); font-weight: 600; }

.chagua-el-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.chagua-el-card {
	position: relative; display: flex; flex-direction: column; margin: 0; padding: 0;
	background: var(--chel-card); border: 1px solid var(--chel-line); border-radius: var(--chel-radius);
	box-shadow: 0 1px 2px rgba(4, 54, 31, .05); overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.chagua-el-card:hover, .chagua-el-card:focus-within { transform: translateY(-3px); box-shadow: var(--chel-shadow); border-color: #bfd8c9; }
.chagua-el-card-link {
	position: relative; display: flex; flex-direction: column; align-items: center; height: 100%;
	flex: 1; padding: 22px 16px 14px; text-align: center; text-decoration: none !important; color: inherit !important;
}
.chagua-el-card-link::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; background: linear-gradient(180deg, var(--chel-soft), transparent); }
.chagua-el-card.stage-iebc-cleared { border-top: 4px solid var(--chel-green); }
.chagua-el-card.stage-party-nominated { border-top: 4px solid #d99a00; }
.chagua-el-card.stage-aspirant, .chagua-el-card.stage-none { border-top: 4px solid #c6d0ca; }
.chagua-el-card-link:focus-visible { outline-offset: -3px; border-radius: var(--chel-radius); }
.chagua-el-photo { position: relative; display: block; width: 96px; height: 96px; margin-bottom: 12px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--chel-green), var(--chel-red)); }
.chagua-el-photo img, .chagua-el-initials { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: var(--chel-soft); }
.chagua-el-initials { font-size: 1.7rem; font-weight: 800; color: var(--chel-green); letter-spacing: .02em; }
.chagua-el-card-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; width: 100%; }
.chagua-el-seat { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--chel-green); }
.chagua-el-name { font-size: 1.08rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; color: var(--chel-ink); }
.chagua-el-where { font-size: .86rem; color: var(--chel-muted); }
.chagua-el-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.chagua-el-party { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #111; color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .03em; }
.chagua-el .chagua-stage { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; margin: 0; }
.chagua-el .chagua-stage-aspirant { background: #eef1f4; color: #3c4650; }
.chagua-el .chagua-stage-party-nominated { background: #fff4d6; color: #7a5200; }
.chagua-el .chagua-stage-iebc-cleared { background: #dff3e6; color: #0f5c32; }
.chagua-el-go { margin-top: 12px; font-size: .88rem; font-weight: 700; color: var(--chel-green); }
.chagua-el-card-link:hover .chagua-el-go { color: var(--chel-red); }

/* Add to my ballot */
.chagua-el-card-foot { display: flex; border-top: 1px solid var(--chel-line); }
.chagua-el-card-foot > * { border-top: 0 !important; }
.chagua-el-pick {
	display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; width: 100%; min-height: 46px; margin: 0;
	padding: 10px 12px; border: 0; border-top: 1px solid var(--chel-line); border-radius: 0;
	background: var(--chel-soft); color: var(--chel-green); font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer;
	transition: background .15s, color .15s;
}
.chagua-el-pick:hover { background: #e6f2eb; }
.chagua-el-pick:disabled { opacity: .6; cursor: progress; }
.chagua-el-pick-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; font-size: .9rem; line-height: 1; }
.chagua-el-pick.is-on { background: var(--chel-green); color: #fff; }
.chagua-el-pick.is-on .chagua-el-pick-ico { background: #fff; color: var(--chel-green); border-color: #fff; }
.chagua-el-pick.is-off { color: #8a978f; background: #f7f8f7; }
.chagua-el-card.is-chosen { border-color: var(--chel-green); box-shadow: 0 0 0 2px var(--chel-green), var(--chel-shadow); }
.chagua-el-card.is-chosen::after { content: "✓"; position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--chel-green); color: #fff; font-weight: 800; font-size: .85rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* My Ballot card */
.chagua-el-mb {
	position: relative; overflow: hidden;
	background: linear-gradient(180deg, #fff 0, #fff 70%, var(--chel-soft) 100%);
	border: 1px solid var(--chel-line); border-radius: var(--chel-radius); box-shadow: var(--chel-shadow); padding: 20px;
}
.chagua-el-mb::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #111 0 33%, var(--chel-red) 33% 66%, var(--chel-green) 66%); }
.chagua-el-mb-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.chagua-el-mb-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--chel-red); color: #fff; }
.chagua-el-mb h3 { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--chel-ink); }
.chagua-el-mb-head p { margin: 2px 0 0; font-size: .85rem; color: var(--chel-muted); }
.chagua-el-mb-where { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: var(--chel-soft); }
.chagua-el-mb-where span { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--chel-muted); flex-basis: 100%; }
.chagua-el-mb-where strong { font-size: .98rem; }
.chagua-el-linkbtn { background: none !important; border: 0; padding: 0; margin: 0; color: var(--chel-green) !important; font: inherit; font-size: .88rem; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 0; }
.chagua-el-mb-progress { display: grid; gap: 6px; margin-bottom: 10px; font-size: .82rem; color: var(--chel-muted); }
.chagua-el-mb-bar { display: block; height: 8px; border-radius: 99px; background: var(--chel-line); overflow: hidden; }
.chagua-el-mb-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--chel-green), var(--chel-green-2)); transition: width .3s ease; }
.chagua-el-mb-list { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: mb; }
.chagua-el-mb-list li { counter-increment: mb; display: grid; grid-template-columns: 26px 1fr auto; gap: 2px 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--chel-line); }
.chagua-el-mb-list li::before { content: counter(mb); grid-row: 1 / span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--chel-soft); color: var(--chel-muted); font-size: .78rem; font-weight: 800; }
.chagua-el-mb-list li.is-picked::before { content: "✓"; background: var(--chel-green); color: #fff; }
.chagua-el-mb-pos { grid-column: 2; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--chel-muted); }
.chagua-el-mb-name, .chagua-el-mb-choose, .chagua-el-mb-none { grid-column: 2; font-size: .95rem; overflow-wrap: anywhere; }
.chagua-el-mb-name { font-weight: 800; color: var(--chel-ink) !important; text-decoration: none !important; }
.chagua-el-mb-choose { font-weight: 700; color: var(--chel-green) !important; font-size: .88rem; }
.chagua-el-mb-none { color: #8a978f; font-size: .88rem; }
.chagua-el-mb-x { grid-column: 3; grid-row: 1 / span 2; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--chel-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.chagua-el-mb-x:hover { background: #fdecee; color: var(--chel-red); }
.chagua-el-mb-actions { display: grid; gap: 8px; }
.chagua-el-mb-actions .chagua-el-btn { width: 100%; }
.chagua-el-mb-q { margin: 0 0 10px; font-weight: 800; }
.chagua-el-mb-picker .chagua-el-field { margin-bottom: 10px; }
.chagua-el-mb-note { margin: 4px 0 0; font-size: .8rem; color: var(--chel-muted); }
.chagua-el-mb-privacy { margin: 12px 0 0; font-size: .78rem; color: var(--chel-muted); }
.chagua-el-mb-privacy::before { content: "🔒 "; }

/* Toast */
.chagua-el-toast {
	position: fixed; left: 50%; bottom: 20px; z-index: 99999; transform: translate(-50%, 20px); opacity: 0;
	width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px;
	background: var(--chel-deep, #04361f); color: #fff; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
	transition: transform .25s ease, opacity .25s ease;
}
.chagua-el-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.chagua-el-toast a { color: #9be3bd !important; font-weight: 800; margin-left: 6px; white-space: nowrap; }

.chagua-el-empty { text-align: center; padding: 40px 20px; border: 2px dashed var(--chel-line); border-radius: var(--chel-radius); background: var(--chel-soft); }
.chagua-el-empty-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--chel-green); font-size: 1.6rem; font-weight: 800; box-shadow: var(--chel-shadow); }
.chagua-el-empty h3 { margin: 12px 0 4px; font-size: 1.15rem; }
.chagua-el-empty p { margin: 0 0 16px; color: var(--chel-muted); }

.chagua-el-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 24px 0 0; }
.chagua-el-pager a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1.5px solid var(--chel-line); background: #fff; font-weight: 700; color: var(--chel-green) !important; text-decoration: none !important; }
.chagua-el-pager a:hover { border-color: var(--chel-green); }
.chagua-el-pager span { color: var(--chel-muted); font-size: .9rem; }

/* ---------- Responsive ---------- */
@container chel (max-width: 900px) {
	.chagua-el-hero-in { grid-template-columns: 1fr; padding: 30px 24px 44px; gap: 24px; }
	.chagua-el-body { grid-template-columns: 1fr; }
	.chagua-el-side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
	.chagua-el-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chagua-el-field-q { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .chagua-el { padding: 0 12px; } }
@container chel (max-width: 560px) {
	.chagua-el-pick { font-size: .74rem; gap: 4px; padding: 8px 4px; white-space: nowrap; letter-spacing: -.01em; }
	.chagua-el-pick-ico { width: 18px; height: 18px; font-size: .75rem; }
	.chagua-el-lbl { letter-spacing: .03em; font-size: .6rem; }
	.chagua-el-hero { border-radius: 18px; }
	.chagua-el-hero-in { padding: 24px 18px 38px; }
	.chagua-el-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chagua-el-clock { gap: 6px; }
	.chagua-el-unit { padding: 12px 2px 10px; border-radius: 12px; }
	.chagua-el-fields { grid-template-columns: 1fr; }
	.chagua-el-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.chagua-el-card-link { padding: 16px 10px 12px; }
	.chagua-el-photo { width: 72px; height: 72px; }
	.chagua-el-name { font-size: .98rem; }
	.chagua-el-summary { flex-direction: column; }
}
@container chel (max-width: 280px) {
	.chagua-el-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.chagua-el-card-link, .chagua-el-pill, .chagua-el-results { transition: none; }
	.chagua-el-card-link:hover { transform: none; }
}

/* ---------- Compare ---------- */
.chagua-el-cmp-toggle {
	flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; margin: 0; padding: 8px 12px;
	border: 0; border-left: 1px solid var(--chel-line); border-radius: 0; background: #fff; color: var(--chel-muted);
	font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
}
.chagua-el-card-foot .chagua-el-cmp-toggle:only-child { flex: 1; border-left: 0; }
.chagua-el-cmp-toggle:hover { color: var(--chel-ink); background: var(--chel-soft); }
.chagua-el-cmp-toggle.is-on { background: #111; color: #fff; }
.chagua-el.has-tray { padding-bottom: 84px; }
.chagua-el-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(4, 54, 31, .97); color: #fff; box-shadow: 0 -8px 24px rgba(0, 0, 0, .2); }
.chagua-el-tray-in { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px 12px; }
.chagua-el-tray-lbl { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.chagua-el-tray-list { display: flex; flex-wrap: nowrap; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.chagua-el-tray-list::-webkit-scrollbar { display: none; }
.chagua-el-chip { flex: none; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .88rem; font-weight: 600; }
.chagua-el-chip button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.chagua-el-chip button:hover { background: rgba(255, 255, 255, .2); }
.chagua-el-tray .chagua-el-btn { flex: none; background: #fff; color: var(--chel-deep) !important; }
.chagua-el-tray .chagua-el-btn:disabled { opacity: .5; cursor: not-allowed; }
.chagua-el-tray .chagua-el-linkbtn { color: #fff !important; }

.chagua-el-dlg { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); color: var(--chel-ink); background: #fff; }
.chagua-el-dlg::backdrop { background: rgba(4, 30, 18, .55); backdrop-filter: blur(2px); }
.chagua-el-dlg-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--chel-line); }
.chagua-el-dlg-head h3 { margin: 0; flex: 1; font-size: 1.15rem; font-weight: 800; }
.chagua-el-dlg-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--chel-soft); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--chel-ink); }
.chagua-el-dlg-body { padding: 16px 20px 20px; }
.chagua-el-cmp-warn { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #fff4d6; color: #7a5200; font-weight: 600; font-size: .9rem; }
.chagua-el-cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chagua-el-cmp { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .93rem; }
.chagua-el-cmp th, .chagua-el-cmp td { padding: 12px 10px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--chel-line); overflow-wrap: anywhere; }
.chagua-el-cmp tbody th { position: sticky; left: 0; z-index: 1; background: #fff; width: 120px; color: var(--chel-muted); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.chagua-el-cmp thead td { width: 120px; border: 0; }
.chagua-el-cmp thead th { text-align: center; border-bottom: 0; }
.chagua-el-cmp thead .chagua-el-photo { margin: 0 auto 8px; width: 84px; height: 84px; }
.chagua-el-cmp thead .chagua-el-name { display: block; font-size: 1.05rem; color: var(--chel-ink) !important; text-decoration: none !important; }
.chagua-el-cmp small { display: block; margin-top: 4px; color: var(--chel-muted); font-size: .78rem; }
.chagua-el-cmp .chagua-stage { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.chagua-el-cmp-actions td { display: table-cell; }
.chagua-el-cmp-actions .chagua-el-btn { width: 100%; margin-bottom: 8px; min-height: 42px; font-size: .9rem; }
.chagua-el-cmp-actions .chagua-el-pick { border: 0; border-radius: 10px; min-height: 42px; }
.chagua-el-ok { color: var(--chel-green); font-weight: 700; }
.chagua-el-dlg .chagua-el-order { margin: 12px 0 0; }

/* ---------- Share ---------- */
.chagua-el-share { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--chel-line); }
.chagua-el-share-img { display: block; width: 100%; height: auto; border-radius: 12px; margin-bottom: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.chagua-el-share-q { margin: 0 0 10px; font-weight: 700; font-size: .92rem; }
.chagua-el-share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chagua-el-share-btns .chagua-el-wa { grid-column: 1 / -1; background: #1f9e55; gap: 8px; }
.chagua-el-share-btns .chagua-el-wa:hover { background: #17803f; }
.chagua-el-share-btns .chagua-el-btn { min-height: 44px; font-size: .92rem; }
.chagua-el-share-btns [hidden] + .chagua-el-btn { grid-column: 1 / -1; }
.chagua-el-share-note { margin: 8px 0 0; font-size: .78rem; color: var(--chel-muted); }

/* ---------- Election day ---------- */
.chagua-el-ed {
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; margin: 18px 0 0; overflow: hidden;
	border-radius: 20px; border: 1px solid var(--chel-line); background: #fff; box-shadow: var(--chel-shadow);
}
.chagua-el-ed-main { padding: 24px; background: linear-gradient(160deg, #fff7e0, #fff 70%); }
.chagua-el-ed.is-today .chagua-el-ed-main { background: linear-gradient(160deg, #e6f5ec, #fff 70%); }
.chagua-el-ed-tag { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: var(--chel-red); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.chagua-el-ed.is-today .chagua-el-ed-tag { background: var(--chel-green); animation: chel-pulse 2s ease-in-out infinite; }
@keyframes chel-pulse { 50% { box-shadow: 0 0 0 8px rgba(0, 107, 60, .12); } }
.chagua-el-ed h3 { margin: 0 0 12px; font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.chagua-el-ed-list { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: ed; display: grid; gap: 8px; }
.chagua-el-ed-list li { counter-increment: ed; position: relative; padding-left: 36px; font-size: .95rem; }
.chagua-el-ed-list li::before { content: counter(ed); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--chel-green); color: #fff; font-size: .78rem; font-weight: 800; }
.chagua-el-ed-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chagua-el-ed-links .chagua-el-btn { flex: none; }
.chagua-el-ed-note { margin: 10px 0 0; font-size: .88rem; color: var(--chel-muted); }
.chagua-el-ed-where { padding: 24px; border-left: 1px solid var(--chel-line); max-height: 480px; overflow: auto; }
.chagua-el-ed-where h4 { margin: 0 0 2px; font-size: 1.05rem; font-weight: 800; }
.chagua-el-ed-ward { margin: 0 0 10px; color: var(--chel-muted); font-size: .9rem; }
.chagua-el-ed-count { margin: 0 0 8px; font-size: .82rem; font-weight: 700; color: var(--chel-green); }
.chagua-el-ed-empty { margin: 0; color: var(--chel-muted); font-size: .92rem; }
.chagua-el-ed-stations { list-style: none; margin: 8px 0 0; padding: 0; }
.chagua-el-ed-stations li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--chel-line); }
.chagua-el-ed-pin { color: var(--chel-red); display: grid; place-items: center; }
.chagua-el-ed-st strong { display: block; font-size: .95rem; }
.chagua-el-ed-st span { display: block; font-size: .8rem; color: var(--chel-muted); }
.chagua-el-ed-go { flex: none; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--chel-green); background: var(--chel-green); color: #fff !important; font-size: .82rem; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.chagua-el-ed-go:hover { background: #013824; border-color: #013824; color: #fff !important; }
.chagua-el-solo { margin-bottom: 20px; }

@container chel (max-width: 760px) {
	.chagua-el-ed { grid-template-columns: 1fr; }
	.chagua-el-ed-where { border-left: 0; border-top: 1px solid var(--chel-line); max-height: none; }
}
@container chel (max-width: 560px) {
	.chagua-el-cmp-toggle { padding: 8px; }
	.chagua-el-cmp-toggle .chagua-el-cmp-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
	.chagua-el-ed-main, .chagua-el-ed-where { padding: 18px; }
}
@media (max-width: 600px) {
	.chagua-el-dlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
	.chagua-el-cmp tbody th { width: 84px; font-size: .68rem; }
	.chagua-el-cmp thead td { width: 84px; }
	.chagua-el-cmp th, .chagua-el-cmp td { padding: 10px 6px; font-size: .86rem; }
	.chagua-el-cmp thead .chagua-el-photo { width: 60px; height: 60px; }
	.chagua-el-cmp.cols-3 { min-width: 560px; }
	.chagua-el-tray-lbl { display: none; }
}

.chagua-el.has-tray .chagua-el-toast { bottom: 92px; }
@media (max-width: 600px) { .chagua-el-toast { font-size: .9rem; padding: 10px 14px; bottom: 12px; } .chagua-el.has-tray .chagua-el-toast { bottom: 84px; } }
@media (max-width: 600px) { .chagua-el-chip { max-width: 130px; font-size: .8rem; } .chagua-el-tray .chagua-el-btn { min-height: 42px; padding: 8px 12px; font-size: .9rem; } }

/* ---------- Home ---------- */
.chagua-home-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.chagua-home-days { font-size: clamp(3.4rem, 9vw, 5.6rem); line-height: .95; font-weight: 900; letter-spacing: -.03em; color: #fff; text-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.chagua-home-days-lbl { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800; line-height: 1.15; max-width: 14ch; }
.chagua-home-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.chagua-home-ctas .chagua-el-btn { flex: none; min-height: 50px; padding: 12px 22px; font-size: 1.02rem; }
.chagua-home-cta { background: var(--chel-red); box-shadow: 0 8px 20px rgba(181, 29, 42, .35); }
.chagua-home-cta:hover { background: #8f1621; }
.chagua-home-cta-2 { background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .5); }
.chagua-home-cta-2:hover { background: rgba(255, 255, 255, .24); }

.chagua-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: 24px; }
.chagua-home-side { grid-column: 2; grid-row: 1; position: sticky; top: 24px; scroll-margin-top: 24px; }
.chagua-home-races { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.chagua-home-race, .chagua-home-cards { min-width: 0; }
.chagua-home-race { padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--chel-line); box-shadow: 0 1px 2px rgba(4, 54, 31, .05); }
.chagua-home-race.is-mine { border-color: #bfe0cc; box-shadow: 0 0 0 3px rgba(0, 107, 60, .08); }
.chagua-home-race-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 4px; }
.chagua-home-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--chel-deep), var(--chel-green)); color: #fff; font-size: 1.3rem; font-weight: 900; }
.chagua-home-race:first-child .chagua-home-num { background: linear-gradient(135deg, #111, var(--chel-red)); }
.chagua-home-lvl { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--chel-muted); }
.chagua-home-race h3 { margin: 0; font-size: 1.45rem; font-weight: 900; line-height: 1.15; color: var(--chel-ink); }
.chagua-home-meta { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: var(--chel-muted); }
.chagua-home-meta span + span::before { content: "·"; margin-right: 12px; }
.chagua-home-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chagua-home-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.chagua-home-all { background: var(--chel-green); color: #fff !important; }
.chagua-home-all:hover { background: var(--chel-deep); }
.chagua-home-poll { border: 1.5px solid var(--chel-line); color: var(--chel-ink) !important; background: #fff; }
.chagua-home-poll:hover { border-color: var(--chel-red); color: var(--chel-red) !important; }
.chagua-home-where { margin: 6px 0 14px 62px; font-size: .88rem; color: var(--chel-muted); }
.chagua-home-race.is-mine .chagua-home-where { color: var(--chel-green); font-weight: 800; }
.chagua-home-none { margin: 0; padding: 16px; border-radius: 12px; background: var(--chel-soft); text-align: center; }
.chagua-home-cards .chagua-el-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.chagua-home-cards .chagua-el-photo { width: 80px; height: 80px; }
.chagua-home-cards .chagua-el-card-link { padding: 18px 12px 12px; }

@container chel (max-width: 900px) {
	.chagua-home-grid { grid-template-columns: 1fr; }
	.chagua-home-side { grid-column: 1; grid-row: 1; position: static; }
	.chagua-home-races { grid-row: 2; }
}
@container chel (max-width: 560px) {
	.chagua-home-race { padding: 16px 12px; border-radius: 16px; }
	.chagua-home-race-head { grid-template-columns: auto minmax(0, 1fr); }
	.chagua-home-links { grid-column: 1 / -1; justify-content: flex-start; }
	.chagua-home-num { width: 40px; height: 40px; font-size: 1.1rem; }
	.chagua-home-race h3 { font-size: 1.2rem; }
	.chagua-home-where { margin-left: 0; }
	/* Swipeable row of cards on phones. */
	.chagua-home-cards .chagua-el-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 2px 2px 8px; margin: 0 -12px; padding-left: 12px; scrollbar-width: none; }
	.chagua-home-cards .chagua-el-grid::-webkit-scrollbar { display: none; }
	.chagua-home-cards .chagua-el-card { flex: 0 0 72%; scroll-snap-align: start; }
	.chagua-home-ctas .chagua-el-btn { flex: 1 1 auto; }
}
.chagua-home-cards .chagua-el-pick { white-space: nowrap; font-size: .8rem; gap: 6px; padding: 8px 6px; }
.chagua-home-cards .chagua-el-cmp-toggle { padding: 8px 12px; }
.chagua-home-cards .chagua-el-cmp-toggle .chagua-el-cmp-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* =====================================================================
   6.3 Compare: table, tray and the full /compare/ page
   ===================================================================== */
.chagua-el-cmpx { --cmp-col: 220px; --cmp-lab: 132px; }
.chagua-el-cmp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 12px; }
.chagua-el-cmp-sum { margin: 0; font-weight: 700; color: var(--chel-muted); font-size: .9rem; }
.chagua-el-switch { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; font-size: .9rem; cursor: pointer; user-select: none; }
.chagua-el-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chagua-el-switch span { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: #cfd9d3; transition: background .15s; }
.chagua-el-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.chagua-el-switch input:checked + span { background: var(--chel-green); }
.chagua-el-switch input:checked + span::after { transform: translateX(16px); }
.chagua-el-switch input:focus-visible + span { outline: 3px solid rgba(0,107,60,.35); outline-offset: 2px; }
.chagua-el-cmpx .chagua-el-cmp-scroll { border: 1px solid var(--chel-line); border-radius: var(--chel-radius); background: #fff; max-height: min(78vh, 900px); overflow: auto; }
.chagua-el-cmpx .chagua-el-cmp-scroll:focus-visible { outline: 3px solid rgba(0,107,60,.35); }
.chagua-el-cmpx .chagua-el-cmp { table-layout: fixed; min-width: calc(var(--cmp-lab) + var(--cmp-col) * 2); }
.chagua-el-cmpx .chagua-el-cmp.cols-3 { min-width: calc(var(--cmp-lab) + var(--cmp-col) * 3); }
.chagua-el-cmpx .chagua-el-cmp.cols-4 { min-width: calc(var(--cmp-lab) + var(--cmp-col) * 4); }
.chagua-el-cmpx .chagua-el-cmp thead td, .chagua-el-cmpx .chagua-el-cmp tbody th { width: var(--cmp-lab); }
.chagua-el-cmpx .chagua-el-cmp thead th, .chagua-el-cmpx .chagua-el-cmp thead td { position: sticky; top: 0; z-index: 3; background: #fff; padding: 16px 10px 12px; border-bottom: 2px solid var(--chel-line); }
.chagua-el-cmpx .chagua-el-cmp thead td.chagua-el-cmp-corner { left: 0; z-index: 4; }
.chagua-el-cmpx .chagua-el-cmp tbody th { z-index: 2; }
.chagua-el-cmp-who { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none !important; color: var(--chel-ink) !important; }
.chagua-el-cmpx thead .chagua-el-photo { width: 72px; height: 72px; margin: 0 0 6px; }
.chagua-el-cmpx thead .chagua-el-name { font-size: 1rem; font-weight: 800; line-height: 1.25; text-align: center; }
.chagua-el-cmp-who:hover .chagua-el-name { text-decoration: underline; }
.chagua-el-cmp-party { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--chel-soft); border: 1px solid var(--chel-line); color: var(--chel-muted); font-size: .75rem; font-weight: 700; }
.chagua-el-cmp-grp th { position: static !important; padding: 14px 12px 6px !important; background: var(--chel-soft) !important; border-bottom: 1px solid var(--chel-line); text-transform: none !important; letter-spacing: 0 !important; }
.chagua-el-cmp-grp th span { position: sticky; left: 12px; color: var(--chel-deep); font-size: .82rem; font-weight: 800; }
.chagua-el-cmpx .chagua-el-cmp tbody tr[data-cmp-row] td { line-height: 1.45; }
.chagua-el-cmpx .chagua-el-cmp tbody tr[data-cmp-row]:hover td, .chagua-el-cmpx .chagua-el-cmp tbody tr[data-cmp-row]:hover th { background: #f9fbfa; }
.chagua-el-cmp td + td { border-left: 1px solid var(--chel-line); }
.chagua-el-cmp-none { color: #8a9890; font-style: italic; font-size: .85rem; }
.chagua-el-cmp a { color: var(--chel-green); font-weight: 600; }
.chagua-el-cmp-nodiff { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--chel-soft); font-weight: 600; }
.chagua-el-cmpx .chagua-el-order { margin: 12px 0 0; font-size: .85rem; color: var(--chel-muted); }
.chagua-el-cmp tr[hidden] { display: none; }
/* Tray */
.chagua-el-chip i { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0 6px 0 -6px; border-radius: 50%; background: #fff; color: var(--chel-deep); font-size: .66rem; font-style: normal; font-weight: 800; }
.chagua-el-tray [data-cmp-open]::after { content: attr(data-n); margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--chel-soft); font-size: .75rem; font-weight: 800; }
.chagua-el-dlg-head [data-cmp-page] { text-decoration: none; }
@media (max-width: 600px) {
	.chagua-el-cmpx { --cmp-col: 168px; --cmp-lab: 92px; }
	.chagua-el-cmpx .chagua-el-cmp-scroll { max-height: none; border-radius: 12px; }
	.chagua-el-cmpx thead .chagua-el-photo { width: 52px; height: 52px; }
	.chagua-el-cmpx thead .chagua-el-name { font-size: .9rem; }
	.chagua-el-cmpx .chagua-el-cmp tbody th { font-size: .66rem; }
}

/* Full page: /compare/ – Chagua look (green, Kenyan flag stripe, gold action) */
.chagua-cmpp-wrap { --k-green: #016b3f; --k-green-d: #014d2e; --k-red: #bb0000; --k-gold: #f2b705; --k-gold-d: #d99e00; max-width: 1180px !important; margin: 0 auto 56px !important; padding: 0 16px !important; font-size: 16px; line-height: 1.55; }
.chagua-cmpp-wrap, .chagua-cmpp-wrap * { -webkit-text-fill-color: currentColor; }
.chagua-cmpp-wrap h1, .chagua-cmpp-wrap h2 { background: none !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; text-transform: none !important; letter-spacing: -.01em !important; display: block !important; width: auto !important; }
/* Hero */
.chagua-cmpp-hero { position: relative; overflow: hidden; margin: 0 0 22px; padding: 40px 36px 30px; border-radius: 0 0 26px 26px; color: #fff; background: radial-gradient(circle at 92% 8%, rgba(255,255,255,.10) 0 120px, transparent 121px), radial-gradient(circle at 80% 120%, rgba(242,183,5,.18) 0 160px, transparent 161px), linear-gradient(155deg, #013a22 0%, #014d2e 35%, #016b3f 75%, #0a7d4c 100%); box-shadow: 0 18px 40px rgba(1, 77, 46, .25); }
.chagua-cmpp-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, #000 0 32%, #fff 32% 34%, var(--k-red) 34% 66%, #fff 66% 68%, var(--k-green) 68%); }
.chagua-cmpp-kicker { margin: 0 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #a6f0c6; }
.chagua-cmpp-kicker span { display: inline-block; margin-right: 6px; padding: 3px 9px; border-radius: 6px; background: #fff; color: var(--k-green-d); letter-spacing: .06em; }
.chagua-cmpp-wrap .chagua-cmpp-title { margin: 0 0 10px !important; color: #fff !important; font-size: clamp(30px, 4.6vw, 46px) !important; line-height: 1.08 !important; font-weight: 900 !important; text-align: left !important; }
.chagua-cmpp-sub { max-width: 640px; margin: 0 0 18px; font-size: 17px; color: rgba(255,255,255,.88); }
.chagua-cmpp-sub b { color: #fff; }
.chagua-cmpp-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.chagua-cmpp-steps li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-size: 14px; font-weight: 700; }
.chagua-cmpp-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--k-gold); color: #1c1600; font-size: 13px; }
.chagua-cmpp-fair { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 10px; background: rgba(0,0,0,.18); font-size: 13.5px; font-weight: 600; color: #e7fff2; }
/* Cards */
.chagua-cmpp { max-width: none; margin: 0; }
.chagua-cmpp-lead { margin: 0 0 18px; font-size: 1.05rem; color: var(--chel-muted); }
.chagua-cmpp-card { position: relative; margin: 0 0 20px; padding: 24px 24px 22px; border-radius: 20px; background: #fff; border: 1px solid #e3e9e5; box-shadow: 0 1px 2px rgba(4,54,31,.05), 0 12px 32px rgba(4,54,31,.08); overflow: hidden; }
.chagua-cmpp-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, #000 0 33%, var(--k-red) 33% 66%, var(--k-green) 66%); }
.chagua-cmpp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.chagua-cmpp-wrap .chagua-cmpp-h { margin: 0 !important; color: #0f1f17 !important; font-size: 21px !important; line-height: 1.25 !important; font-weight: 800 !important; }
.chagua-cmpp-count { flex: none; padding: 4px 12px; border-radius: 999px; background: #eef4f0; color: #5b6b63; font-size: 13px; font-weight: 800; }
.chagua-cmpp-count.is-ready { background: #e3f4ea; color: var(--k-green); }
/* Slots */
.chagua-cmpp-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.chagua-cmpp-slot { position: relative; min-height: 158px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px 12px 14px; border-radius: 16px; text-align: center; font: inherit; }
.chagua-cmpp-n { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid #dbe5df; color: #8a9890; font-size: 11.5px; font-weight: 800; }
.chagua-cmpp-slot.is-empty { border: 2px dashed #c9d8cf; background: repeating-linear-gradient(135deg, #f7faf8 0 10px, #f2f7f4 10px 20px); color: #6b7a72; font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .15s, transform .15s, background .15s; }
.chagua-cmpp-slot.is-empty:hover, .chagua-cmpp-slot.is-empty:focus-visible { border-color: var(--k-green); color: var(--k-green); background: #eef7f2; transform: translateY(-2px); outline: 0; }
.chagua-cmpp-slot.is-empty b { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 50%; background: #fff; border: 1px solid #dbe5df; color: var(--k-green); font-size: 24px; font-weight: 400; line-height: 1; box-shadow: 0 2px 6px rgba(4,54,31,.08); }
.chagua-cmpp-slot.is-full { border: 1px solid #e3e9e5; background: #fff; box-shadow: 0 6px 18px rgba(4,54,31,.08); animation: chagua-cmpp-in .22s ease-out; }
.chagua-cmpp-slot.is-full::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 16px 16px 0 0; background: linear-gradient(90deg, var(--k-green-d), var(--k-green)); }
.chagua-cmpp-slot.is-full .chagua-cmpp-n { background: var(--k-green); border-color: var(--k-green); color: #fff; }
@keyframes chagua-cmpp-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.chagua-cmpp-slot .chagua-el-photo { width: 70px; height: 70px; margin: 0 0 6px; }
.chagua-cmpp-slot strong { font-size: 15.5px; line-height: 1.2; color: #0f1f17; }
.chagua-cmpp-slot small { color: #5b6b63; font-size: 12.5px; line-height: 1.35; }
.chagua-cmpp-x { position: absolute; top: 9px; right: 9px; width: 28px; height: 28px; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: #f1f5f2 !important; color: #3b4a42 !important; font-size: 17px !important; line-height: 28px !important; cursor: pointer; box-shadow: none !important; min-height: 0 !important; }
.chagua-cmpp-x:hover { background: #fde8ea !important; color: var(--k-red) !important; }
/* Search */
.chagua-cmpp-find { position: relative; margin-top: 18px; }
.chagua-cmpp-find input[type=search] { width: 100%; height: 56px; min-height: 56px; margin: 0; padding: 0 18px 0 52px !important; border: 2px solid #d6e2db !important; border-radius: 14px !important; font: inherit; font-size: 16.5px !important; color: #0f1f17; background: #fbfdfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23016b3f' stroke-width='2.2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 17px center no-repeat !important; box-shadow: none !important; transition: border-color .15s, box-shadow .15s; }
.chagua-cmpp-find input[type=search]:focus { outline: 0; border-color: var(--k-green) !important; background-color: #fff !important; box-shadow: 0 0 0 4px rgba(1,107,63,.14) !important; }
.chagua-cmpp-res { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.chagua-cmpp-res li { margin: 0; }
.chagua-cmpp-res button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px !important; border: 1px solid #e3e9e5 !important; border-radius: 14px !important; background: #fff !important; color: #0f1f17 !important; font: inherit; text-align: left; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; box-shadow: none !important; min-height: 0 !important; transition: border-color .15s, background .15s; }
.chagua-cmpp-res button:hover, .chagua-cmpp-res button:focus-visible { border-color: var(--k-green) !important; background: #f2f9f5 !important; outline: 0; }
.chagua-cmpp-res button[disabled] { opacity: .6; cursor: default; }
.chagua-cmpp-av { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #e3f4ea, #f4f8f5); color: var(--k-green); font-weight: 800; font-size: .82rem; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d6e2db; }
.chagua-cmpp-av img { width: 100%; height: 100%; object-fit: cover; }
.chagua-cmpp-res span.t { flex: 1; min-width: 0; }
.chagua-cmpp-res span.t b { display: block; font-size: 15px; line-height: 1.25; }
.chagua-cmpp-res span.t small { display: block; margin-top: 2px; color: #5b6b63; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chagua-cmpp-res em { flex: none; display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--k-green); color: #fff; font-style: normal; font-weight: 800; font-size: 13px; }
.chagua-cmpp-res button[disabled] em { background: #e3f4ea; color: var(--k-green); }
.chagua-cmpp-hint { margin: 10px 0 0; color: #5b6b63; font-size: 14px; }
/* Same race */
.chagua-cmpp-rivals { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #f4f8f5; border: 1px solid #e3e9e5; }
.chagua-cmpp-rivals p { margin: 0 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--k-green-d); }
.chagua-cmpp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chagua-cmpp-chips button { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px !important; border: 1px solid #d6e2db !important; border-radius: 999px !important; background: #fff !important; color: #0f1f17 !important; font: inherit; font-size: 14px !important; font-weight: 700; text-transform: none !important; cursor: pointer; box-shadow: none !important; min-height: 0 !important; }
.chagua-cmpp-chips button::after { content: "+"; margin-left: 2px; color: var(--k-green); font-weight: 900; }
.chagua-cmpp-chips button small { color: #5b6b63; font-weight: 600; }
.chagua-cmpp-chips button:hover { border-color: var(--k-green) !important; background: #f2f9f5 !important; }
.chagua-cmpp-chips .chagua-cmpp-av { width: 28px; height: 28px; font-size: .66rem; box-shadow: none; }
/* Actions */
.chagua-cmpp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #edf2ef; }
.chagua-cmpp-acts [data-cmpp-go] { min-height: 50px; padding: 0 28px !important; border: 0 !important; border-radius: 12px !important; background: var(--k-gold) !important; color: #1c1600 !important; font-size: 16px !important; font-weight: 800 !important; text-transform: none !important; box-shadow: 0 6px 16px rgba(217,158,0,.35) !important; }
.chagua-cmpp-acts [data-cmpp-go]:hover:not([disabled]) { background: var(--k-gold-d) !important; }
.chagua-cmpp-acts [data-cmpp-go][disabled] { background: #eef1ef !important; color: #8a9890 !important; box-shadow: none !important; cursor: not-allowed; }
.chagua-cmpp-acts .chagua-el-linkbtn { min-height: 44px; padding: 0 16px !important; border: 1px solid #d6e2db !important; border-radius: 12px !important; background: #fff !important; color: var(--k-green-d) !important; font-weight: 700 !important; text-decoration: none !important; }
.chagua-cmpp-acts .chagua-el-linkbtn[disabled] { opacity: .45; cursor: not-allowed; }
.chagua-cmpp-acts [data-cmpp-clear] { border-color: transparent !important; color: #8a3b3b !important; }
/* Results */
.chagua-cmpp-out:empty { display: none; }
.chagua-cmpp-out { scroll-margin-top: 90px; margin: 0 0 20px; }
.chagua-cmpp-out > .chagua-el-mb-none { padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid #e3e9e5; }
.chagua-cmpp .chagua-el-cmpx { padding: 20px; border-radius: 20px; background: #fff; border: 1px solid #e3e9e5; box-shadow: 0 1px 2px rgba(4,54,31,.05), 0 12px 32px rgba(4,54,31,.08); }
.chagua-cmpp .chagua-el-cmp-sum { color: #0f1f17; font-size: 1.05rem; font-weight: 800; }
/* Races */
.chagua-cmpp-races { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.chagua-cmpp-wrap .chagua-cmpp-races a { position: relative; display: flex !important; flex-direction: column; gap: 3px; min-height: 84px; padding: 14px 14px 12px !important; border: 1px solid #e3e9e5 !important; border-radius: 14px !important; background: #fff !important; color: #0f1f17 !important; font-size: 15.5px; font-weight: 800 !important; line-height: 1.2; text-decoration: none !important; box-shadow: none !important; transition: border-color .15s, transform .15s, box-shadow .15s; }
.chagua-cmpp-wrap .chagua-cmpp-races a::after { content: "→"; position: absolute; right: 12px; bottom: 10px; color: var(--k-green); font-weight: 800; }
.chagua-cmpp-wrap .chagua-cmpp-races a small { font-size: 12.5px; font-weight: 600; color: #5b6b63 !important; }
.chagua-cmpp-wrap .chagua-cmpp-races a:hover { border-color: var(--k-green) !important; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(4,54,31,.10) !important; }
@media (max-width: 980px) { .chagua-cmpp-races { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.chagua-cmpp-wrap { padding: 0 10px !important; }
	.chagua-cmpp-hero { padding: 30px 20px 22px; border-radius: 0 0 20px 20px; }
	.chagua-cmpp-sub { font-size: 15.5px; }
	.chagua-cmpp-steps li { font-size: 13px; }
	.chagua-cmpp-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.chagua-cmpp-slot { min-height: 136px; }
	.chagua-cmpp-card { padding: 18px 16px 16px; border-radius: 16px; }
	.chagua-cmpp-races { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chagua-cmpp-acts [data-cmpp-go] { flex: 1 1 100%; }
	.chagua-cmpp .chagua-el-cmpx { padding: 12px; border-radius: 16px; }
}
.chagua-el-cmp-grp th span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #016b3f; box-shadow: 10px 0 0 -1px #bb0000, 20px 0 0 -2px #000; vertical-align: 1px; margin-right: 26px; }
.chagua-el-cmpx .chagua-el-cmp thead th { border-bottom: 3px solid #016b3f; }
