/*
 * TCG Church Events – front end.
 * Colours follow the Blocksy palette (Customizer → Colors) with matching fallbacks.
 */
.tcge {
	--tcge-primary: var(--theme-palette-color-1, #05689e);
	--tcge-accent: var(--theme-palette-color-2, #16a6f5);
	--tcge-text: var(--theme-palette-color-3, #3a4f66);
	--tcge-heading: var(--theme-palette-color-4, #192a3d);
	--tcge-border: var(--theme-palette-color-5, #e1e8ed);
	--tcge-soft: var(--theme-palette-color-6, #f2f5f7);
	--tcge-card: var(--theme-palette-color-8, #ffffff);
	--tcge-red: #cd201f;
	--tcge-radius: 14px;
	--tcge-shadow: 0 1px 2px rgba(25, 42, 61, 0.06), 0 8px 24px rgba(25, 42, 61, 0.08);
	color: var(--tcge-text);
	line-height: 1.6;
}
.tcge *,
.tcge *::before,
.tcge *::after {
	box-sizing: border-box;
}
.tcge [hidden] {
	display: none !important;
}
.tcge .tcge-icon {
	flex: none;
	vertical-align: -3px;
}
.tcge .tcge-container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 16px;
}
@media (min-width: 768px) {
	.tcge .tcge-container {
		padding-inline: 24px;
	}
}

/* ---------- Hero ---------- */
.tcge .tcge-hero {
	position: relative;
	color: #fff;
	background: linear-gradient(135deg, var(--tcge-heading) 0%, var(--tcge-primary) 100%);
	padding: 56px 0 48px;
	overflow: hidden;
}
.tcge .tcge-hero.has-image {
	background:
		linear-gradient(180deg, rgba(25, 42, 61, 0.35) 0%, rgba(25, 42, 61, 0.88) 100%),
		var(--tcge-hero) center / cover no-repeat,
		var(--tcge-heading);
	min-height: 440px;
	display: flex;
	align-items: flex-end;
}
.tcge .tcge-hero--compact {
	padding: 48px 0 40px;
	text-align: center;
}
.tcge .tcge-hero__title {
	color: #fff;
	font-size: clamp(1.9rem, 4.5vw, 3.1rem);
	line-height: 1.15;
	font-weight: 700;
	margin: 10px 0 14px;
}
.tcge .tcge-hero__intro {
	max-width: 640px;
	margin: 0 auto;
	opacity: 0.9;
	font-size: 1.05rem;
}
.tcge .tcge-crumbs {
	display: flex;
	gap: 8px;
	font-size: 0.9rem;
	opacity: 0.85;
}
.tcge-hero--compact .tcge-crumbs {
	justify-content: center;
}
.tcge .tcge-crumbs a {
	color: #fff;
	text-decoration: none;
}
.tcge .tcge-crumbs a:hover {
	text-decoration: underline;
}
.tcge .tcge-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.tcge .tcge-meta--hero {
	gap: 10px 24px;
	font-size: 1.02rem;
	color: rgba(255, 255, 255, 0.95);
}
.tcge .tcge-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

/* ---------- Tags, buttons ---------- */
.tcge .tcge-tag {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.92);
	color: var(--tcge-heading);
}
.tcge .tcge-tag--up {
	background: var(--tcge-accent);
	color: #fff;
}
.tcge .tcge-tag--today {
	background: var(--tcge-red);
	color: #fff;
}
.tcge .tcge-tag--past {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}
.tcge .tcge-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 8px;
	border: 2px solid var(--tcge-primary);
	background: var(--tcge-primary);
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.tcge .tcge-btn:hover {
	background: var(--tcge-heading);
	border-color: var(--tcge-heading);
	color: #fff;
	transform: translateY(-1px);
}
.tcge .tcge-btn--live {
	background: var(--tcge-red);
	border-color: var(--tcge-red);
}
.tcge .tcge-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.7);
}
.tcge .tcge-btn--ghost:hover {
	background: #fff;
	border-color: #fff;
	color: var(--tcge-heading);
}
.tcge .tcge-btn--outline {
	background: transparent;
	color: var(--tcge-primary);
}
.tcge .tcge-btn--outline:hover {
	background: var(--tcge-primary);
	border-color: var(--tcge-primary);
	color: #fff;
}
.tcge .tcge-btn--block {
	display: flex;
	width: 100%;
	margin-top: 18px;
}
.tcge .tcge-more {
	text-align: center;
	margin: 28px 0 0;
}

/* ---------- Meta list ---------- */
.tcge .tcge-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
}
.tcge .tcge-meta li {
	display: inline-flex;
	align-items: flex-start;
	gap: 7px;
	margin: 0;
}

/* ---------- Single layout ---------- */
.tcge .tcge-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	padding-top: 40px;
	padding-bottom: 8px;
}
.tcge .tcge-layout__side {
	align-self: start;
	position: sticky;
	top: 100px;
}
@media (max-width: 960px) {
	.tcge .tcge-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		padding-top: 28px;
	}
	.tcge .tcge-layout__side {
		position: static;
	}
}
.tcge .tcge-content {
	font-size: 1.05rem;
}
.tcge .tcge-content > *:first-child {
	margin-top: 0;
}
.tcge .tcge-content img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.tcge .tcge-section {
	margin-top: 44px;
}
.tcge .tcge-layout__main > .tcge-section:first-child {
	margin-top: 0;
}
.tcge .tcge-section__title {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--tcge-heading);
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 20px;
}
.tcge .tcge-section__title .tcge-icon {
	width: 26px;
	height: 26px;
	color: var(--tcge-primary);
}
.tcge .tcge-count {
	font-size: 0.8rem;
	font-weight: 600;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--tcge-soft);
	color: var(--tcge-text);
}

/* Countdown */
.tcge .tcge-countdown {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding: 18px 20px;
	margin-bottom: 28px;
	border-radius: var(--tcge-radius);
	background: var(--tcge-soft);
	border: 1px solid var(--tcge-border);
}
.tcge .tcge-countdown__label {
	font-weight: 600;
	color: var(--tcge-heading);
}
.tcge .tcge-countdown__units {
	display: flex;
	gap: 10px;
}
.tcge .tcge-countdown__unit {
	min-width: 62px;
	padding: 8px 6px;
	text-align: center;
	border-radius: 10px;
	background: var(--tcge-card);
	box-shadow: var(--tcge-shadow);
}
.tcge .tcge-countdown__unit b {
	display: block;
	font-size: 1.45rem;
	line-height: 1.1;
	color: var(--tcge-primary);
}
.tcge .tcge-countdown__unit small {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Info card */
.tcge .tcge-info {
	padding: 24px;
	border-radius: var(--tcge-radius);
	background: var(--tcge-card);
	border: 1px solid var(--tcge-border);
	box-shadow: var(--tcge-shadow);
}
.tcge .tcge-info__title {
	font-size: 1.15rem;
	color: var(--tcge-heading);
	margin: 0 0 14px;
}
.tcge .tcge-info dl {
	margin: 0;
}
.tcge .tcge-info dl > div {
	padding: 12px 0;
	border-top: 1px solid var(--tcge-border);
}
.tcge .tcge-info dl > div:first-child {
	border-top: 0;
	padding-top: 0;
}
.tcge .tcge-info dt {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--tcge-primary);
	margin: 0 0 4px;
}
.tcge .tcge-info dt .tcge-icon {
	width: 16px;
	height: 16px;
}
.tcge .tcge-info dd {
	margin: 0;
	color: var(--tcge-heading);
	font-weight: 500;
}
.tcge .tcge-info dd small {
	display: block;
	font-weight: 400;
	color: var(--tcge-text);
}
.tcge .tcge-info dd a {
	color: var(--tcge-primary);
	font-weight: 500;
	text-decoration: none;
}
.tcge .tcge-info dd a:hover {
	text-decoration: underline;
}
.tcge .tcge-info__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 4px;
}
.tcge .tcge-info__links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Share */
.tcge .tcge-share {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 0 4px;
}
.tcge .tcge-share__label {
	font-weight: 600;
	font-size: 0.9rem;
	margin-right: auto;
	color: var(--tcge-heading);
}
.tcge .tcge-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: var(--tcge-soft);
	color: var(--tcge-heading);
	cursor: pointer;
	position: relative;
	transition: background 0.2s, color 0.2s;
}
.tcge .tcge-share__btn--wa:hover {
	background: #25d366;
	color: #fff;
}
.tcge .tcge-share__btn--fb:hover {
	background: #1877f2;
	color: #fff;
}
.tcge .tcge-share__copy:hover {
	background: var(--tcge-primary);
	color: #fff;
}
.tcge .tcge-share__copy.is-copied::after {
	content: attr(data-copied);
	position: absolute;
	bottom: calc(100% + 8px);
	right: 0;
	white-space: nowrap;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--tcge-heading);
	color: #fff;
	font-size: 0.78rem;
}

/* Schedule */
.tcge .tcge-schedule {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 3px solid var(--tcge-border);
}
.tcge .tcge-schedule li {
	position: relative;
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0 0 20px 24px;
}
.tcge .tcge-schedule li::before {
	content: "";
	position: absolute;
	left: -9px;
	top: 5px;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--tcge-card);
	border: 3px solid var(--tcge-primary);
}
.tcge .tcge-schedule__time {
	font-weight: 700;
	color: var(--tcge-primary);
}
.tcge .tcge-schedule__body strong {
	display: block;
	color: var(--tcge-heading);
}
.tcge .tcge-schedule__body span {
	font-size: 0.95rem;
}
@media (max-width: 560px) {
	.tcge .tcge-schedule li {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}
}

/* Winners */
.tcge .tcge-results {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}
.tcge .tcge-results__item {
	--medal: var(--tcge-primary);
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 0;
	padding: 18px;
	border-radius: var(--tcge-radius);
	background: var(--tcge-card);
	border: 1px solid var(--tcge-border);
	border-top: 4px solid var(--medal);
	box-shadow: var(--tcge-shadow);
}
.tcge .tcge-results__item--1 {
	--medal: #d4a017;
}
.tcge .tcge-results__item--2 {
	--medal: #9aa5b1;
}
.tcge .tcge-results__item--3 {
	--medal: #b8733d;
}
.tcge .tcge-results__medal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--medal);
	color: #fff;
}
.tcge .tcge-results__medal .tcge-icon {
	width: 24px;
	height: 24px;
}
.tcge .tcge-results__pos {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--medal);
}
.tcge .tcge-results__name {
	display: block;
	color: var(--tcge-heading);
	font-size: 1.05rem;
	line-height: 1.3;
}
.tcge .tcge-results__detail {
	display: block;
	font-size: 0.9rem;
	margin-top: 2px;
}

/* ---------- Gallery ---------- */
.tcge .tcge-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px;
}
.tcge .tcge-gallery__item {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 10px;
	background: var(--tcge-soft);
}
.tcge .tcge-gallery__item.is-hidden {
	display: none;
}
.tcge .tcge-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	transition: transform 0.4s ease;
}
.tcge .tcge-gallery__item:hover img {
	transform: scale(1.06);
}
.tcge .tcge-gallery__more-wrap {
	text-align: center;
	margin: 20px 0 0;
}
@media (max-width: 600px) {
	.tcge .tcge-gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 4px;
	}
	.tcge .tcge-gallery__item {
		border-radius: 6px;
	}
}

/* Lightbox (appended to <body>, so not inside .tcge) */
.tcge-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 16, 25, 0.95);
	opacity: 0;
	transition: opacity 0.2s;
	touch-action: pan-y;
}
.tcge-lightbox.is-open {
	opacity: 1;
}
.tcge-lightbox [hidden] {
	display: none !important;
}
.tcge-lightbox__figure {
	margin: 0;
	text-align: center;
	max-width: 92vw;
}
.tcge-lightbox__img {
	display: block;
	max-width: 92vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	margin: 0 auto;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.tcge-lightbox__caption {
	color: #e6edf3;
	margin-top: 12px;
	font-size: 0.95rem;
}
.tcge-lightbox__counter {
	position: absolute;
	top: 18px;
	left: 20px;
	color: #e6edf3;
	font-size: 0.9rem;
}
.tcge-lightbox button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.tcge-lightbox button:hover,
.tcge-lightbox button:focus-visible {
	background: rgba(255, 255, 255, 0.25);
}
.tcge-lightbox__close {
	top: 12px;
	right: 14px;
}
.tcge-lightbox__prev {
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
}
.tcge-lightbox__next {
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
}
@media (max-width: 600px) {
	.tcge-lightbox__prev,
	.tcge-lightbox__next {
		top: auto;
		bottom: 18px;
		transform: none;
	}
}

/* ---------- Videos ---------- */
.tcge .tcge-videos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
@media (max-width: 760px) {
	.tcge .tcge-videos {
		grid-template-columns: minmax(0, 1fr);
	}
}
.tcge .tcge-video {
	margin: 0;
}
.tcge .tcge-video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--tcge-radius);
	background: #000;
	box-shadow: var(--tcge-shadow);
}
.tcge .tcge-video__frame iframe,
.tcge .tcge-video__frame video,
.tcge .tcge-video__frame .tcge-yt,
.tcge .tcge-video__frame > div {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
	margin: 0;
}
.tcge .tcge-video__link {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}
.tcge .tcge-video figcaption {
	margin-top: 10px;
	font-weight: 600;
	color: var(--tcge-heading);
}
.tcge .tcge-yt {
	padding: 0;
	cursor: pointer;
	background: #000;
}
.tcge .tcge-yt img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	opacity: 0.92;
	transition: opacity 0.2s;
}
.tcge .tcge-yt:hover img {
	opacity: 1;
}
.tcge .tcge-yt__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	transform: translate(-50%, -50%);
	border-radius: 14px;
	background: var(--tcge-red);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s;
}
.tcge .tcge-yt__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 17px;
	border-color: transparent transparent transparent #fff;
}
.tcge .tcge-yt:hover .tcge-yt__play {
	transform: translate(-50%, -50%) scale(1.08);
}

/* ---------- Listing ---------- */
.tcge-archive .tcge-container {
	padding-bottom: 56px;
}
.tcge-archive .tcge-hero .tcge-container {
	padding-bottom: 0;
}
.tcge .tcge-filters {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: 28px 0 8px;
}
.tcge .tcge-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var(--tcge-soft);
	border: 1px solid var(--tcge-border);
}
.tcge .tcge-tabs__tab {
	padding: 8px 20px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--tcge-text);
	text-decoration: none;
}
.tcge .tcge-tabs__tab:hover {
	color: var(--tcge-primary);
}
.tcge .tcge-tabs__tab.is-active {
	background: var(--tcge-primary);
	color: #fff;
}
.tcge .tcge-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.tcge .tcge-chip {
	padding: 5px 14px;
	border-radius: 999px;
	border: 1px solid var(--tcge-border);
	background: var(--tcge-card);
	font-size: 0.85rem;
	color: var(--tcge-text);
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}
.tcge .tcge-chip:hover {
	border-color: var(--tcge-primary);
	color: var(--tcge-primary);
}
.tcge .tcge-chip.is-active {
	border-color: var(--tcge-primary);
	background: var(--tcge-primary);
	color: #fff;
}

.tcge .tcge-grid {
	display: grid;
	grid-template-columns: repeat(var(--tcge-cols, 3), minmax(0, 1fr));
	gap: 24px;
}
@media (max-width: 1000px) {
	.tcge .tcge-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tcge .tcge-grid[style*="cols:1"] {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 640px) {
	.tcge .tcge-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
}

/* Card */
.tcge .tcge-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--tcge-radius);
	background: var(--tcge-card);
	border: 1px solid var(--tcge-border);
	box-shadow: var(--tcge-shadow);
	transition: transform 0.25s, box-shadow 0.25s;
}
.tcge .tcge-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 2px 4px rgba(25, 42, 61, 0.06), 0 16px 36px rgba(25, 42, 61, 0.14);
}
.tcge .tcge-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, var(--tcge-heading), var(--tcge-primary));
}
.tcge .tcge-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	transition: transform 0.5s ease;
}
.tcge .tcge-card:hover .tcge-card__img {
	transform: scale(1.05);
}
.tcge .tcge-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: rgba(255, 255, 255, 0.35);
}
.tcge .tcge-card__placeholder .tcge-icon {
	width: 64px;
	height: 64px;
	stroke-width: 1.5;
}
.tcge .tcge-card__media .tcge-tag {
	position: absolute;
	top: 12px;
	right: 12px;
}
.tcge .tcge-date-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 54px;
	padding: 6px 8px;
	border-radius: 10px;
	background: var(--tcge-card);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	line-height: 1;
}
.tcge .tcge-date-badge--static {
	position: static;
	box-shadow: none;
	background: var(--tcge-soft);
}
.tcge .tcge-date-badge__day {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--tcge-primary);
}
.tcge .tcge-date-badge__month {
	margin-top: 4px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tcge-heading);
}
.tcge .tcge-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 20px;
}
.tcge .tcge-card__type {
	display: block;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--tcge-accent);
	margin-bottom: 6px;
}
.tcge .tcge-card__title {
	font-size: 1.18rem;
	line-height: 1.3;
	font-weight: 700;
	margin: 0 0 12px;
}
.tcge .tcge-card__title a {
	color: var(--tcge-heading);
	text-decoration: none;
}
.tcge .tcge-card__title a::after {
	/* Whole card is clickable. */
	content: "";
	position: absolute;
	inset: 0;
}
.tcge .tcge-card {
	position: relative;
}
.tcge .tcge-card__title a:hover {
	color: var(--tcge-primary);
}
.tcge .tcge-card .tcge-meta {
	flex-direction: column;
	gap: 6px;
	font-size: 0.9rem;
}
.tcge .tcge-card .tcge-meta .tcge-icon {
	width: 16px;
	height: 16px;
	margin-top: 3px;
	color: var(--tcge-primary);
}
.tcge .tcge-card__foot {
	display: flex;
	gap: 16px;
	margin-top: auto;
	padding-top: 14px;
	font-size: 0.85rem;
	color: var(--tcge-text);
}
.tcge .tcge-card__foot span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.tcge .tcge-card__foot .tcge-icon {
	width: 15px;
	height: 15px;
}
.tcge .tcge-card__body > .tcge-meta + .tcge-card__foot {
	border-top: 1px solid var(--tcge-border);
	margin-top: 16px;
}

/* List layout (shortcode) */
.tcge .tcge-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tcge .tcge-row-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--tcge-card);
	border: 1px solid var(--tcge-border);
	color: var(--tcge-text);
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.tcge .tcge-row-item:hover {
	border-color: var(--tcge-primary);
	box-shadow: var(--tcge-shadow);
}
.tcge .tcge-row-item__body {
	flex: 1;
	min-width: 0;
}
.tcge .tcge-row-item .tcge-card__type {
	margin-bottom: 2px;
}
.tcge .tcge-row-item__title {
	display: block;
	font-weight: 700;
	color: var(--tcge-heading);
	line-height: 1.3;
}
.tcge .tcge-row-item__meta {
	display: block;
	font-size: 0.88rem;
}
.tcge .tcge-row-item > .tcge-icon {
	color: var(--tcge-primary);
}

/* Empty state, pagination */
.tcge .tcge-empty {
	text-align: center;
	padding: 48px 16px;
	border-radius: var(--tcge-radius);
	background: var(--tcge-soft);
}
.tcge .tcge-empty .tcge-icon {
	width: 40px;
	height: 40px;
	color: var(--tcge-primary);
}
.tcge .tcge-empty p {
	margin: 10px 0 18px;
}
.tcge-shortcode .tcge-empty {
	padding: 24px 16px;
	margin: 0;
}
.tcge .tcge-pagination {
	margin-top: 36px;
}
.tcge .tcge-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}
.tcge .tcge-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--tcge-border);
	background: var(--tcge-card);
	color: var(--tcge-heading);
	text-decoration: none;
}
.tcge .tcge-pagination .page-numbers.current,
.tcge .tcge-pagination a.page-numbers:hover {
	background: var(--tcge-primary);
	border-color: var(--tcge-primary);
	color: #fff;
}
.tcge .tcge-pagination .screen-reader-text {
	position: absolute;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Spacing at the end of a single event */
.tcge-single {
	padding-bottom: 64px;
}
