/* Teceze Events: upcoming / past editions, hero, CTA, built-in event page. */

.tce-icon {
	display: block;
	flex-shrink: 0;
}

.tce-meta {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--tce-slate);
}

.tce-meta .tce-icon {
	margin-top: 2px;
}

/* ---------- Upcoming editions: cards ---------- */

.tce-edition {
	height: 100%;
	min-height: 270px;
	display: flex;
	background: var(--tce-paper);
	border: 1px solid var(--tce-line);
	border-radius: 16px;
	overflow: hidden;
}

.tce-edition__date {
	flex: 0 0 96px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 20px 8px;
	background: var(--tce-ink);
	white-space: nowrap;
}

.tce-edition__day {
	font-family: var(--tce-head-font);
	font-weight: 800;
	font-size: 36px;
	line-height: 1.16;
	letter-spacing: -1.08px;
	color: #fff;
}

.tce-edition__month {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: 1.12px;
	text-transform: uppercase;
	color: var(--tce-accent);
}

.tce-edition__weekday {
	font-size: 12px;
	line-height: 1.5;
	color: var(--tce-hero-muted);
}

.tce-edition__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 24px;
}

.tce-edition__title {
	font-family: var(--tce-head-font);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -0.2px;
}

.tce-edition__title a {
	color: var(--tce-ink);
}

.tce-edition__title a:hover {
	color: var(--tce-accent);
}

.tce-edition__topic {
	font-family: var(--tce-head-font);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.3;
	letter-spacing: -0.17px;
	color: var(--tce-ink);
}

.tce-edition__spacer {
	flex: 1 0 19px;
}

/* ---------- Upcoming editions: hero panel ---------- */

.tce-panel {
	width: 100%;
	max-width: 432px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 26px;
	border: 1px solid var(--tce-glass-stroke);
	border-radius: 22px;
	background: var(--tce-panel);
	box-shadow: 0 24px 24px rgba(0, 8, 46, 0.45);
	backdrop-filter: blur(8px);
	color: #fff;
}

.tce-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tce-chip {
	padding: 5px 12px;
	border: 1px solid var(--tce-accent);
	border-radius: 999px;
	background: rgba(17, 156, 153, 0.18);
	color: var(--tce-cyan);
	font-weight: 600;
	font-size: 12px;
	line-height: 1.5;
	letter-spacing: 0.96px;
	text-transform: uppercase;
	white-space: nowrap;
}

.tce-panel__side {
	font-weight: 600;
	font-size: 13px;
	line-height: 1.5;
	color: var(--tce-hero-muted);
}

.tce-panel__title h2 {
	margin: 0;
	font-family: var(--tce-head-font);
	font-weight: 800;
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: -0.56px;
	color: #fff;
}

.tce-panel__title p {
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--tce-hero-muted);
}

.tce-panel__empty {
	font-size: 14px;
	color: var(--tce-hero-muted);
}

.tce-panel__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tce-tile {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid var(--tce-glass-stroke);
	border-radius: 16px;
	background: var(--tce-glass-fill);
	color: #fff;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.tce-tile:hover,
.tce-tile:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(73, 225, 212, 0.45);
}

.tce-tile__date {
	flex: 0 0 58px;
	height: 62px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--tce-glass-stroke);
	border-radius: 12px;
	background: var(--tce-deep);
}

.tce-tile__day {
	font-family: var(--tce-head-font);
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
	color: #fff;
}

.tce-tile__month {
	font-weight: 600;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.88px;
	text-transform: uppercase;
	color: var(--tce-cyan);
}

.tce-tile__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tce-tile__city {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--tce-head-font);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.3;
	color: #fff;
}

.tce-tile__next {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--tce-gradient);
	font-family: var(--tce-body-font);
	font-weight: 600;
	font-size: 11px;
	line-height: 1.3;
}

.tce-tile__sub {
	font-size: 13px;
	line-height: 1.45;
	color: var(--tce-hero-muted);
}

/* ---------- Past editions ---------- */

.tce-grid--tight {
	--tce-gap: 16px;
}

.tce-past {
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--tce-line);
	border-radius: 14px;
	overflow: hidden;
	background: var(--tce-paper);
}

.tce-past__photo {
	height: 298px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(154deg, #0b2a6b 14.3%, #000a2d 85.7%);
}

.tce-past__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tce-past__photo span {
	font-size: 14px;
	color: #a3afbf;
}

.tce-past__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 22px;
}

.tce-past__title {
	font-family: var(--tce-head-font);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -0.2px;
	color: var(--tce-ink);
}

.tce-past__text {
	font-size: 16px;
	line-height: 1.6;
	color: var(--tce-slate);
}

.tce-past .tce-btn {
	margin-top: 6px;
}

/* ---------- Previous editions ---------- */

.tce-prev__title {
	font-family: var(--tce-head-font);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.3;
	letter-spacing: -0.24px;
}

.tce-prev__title a {
	color: var(--tce-ink);
}

.tce-prev__title a:hover {
	color: var(--tce-accent);
}

.tce-prev__text {
	margin-top: 6px;
	min-height: 58px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--tce-slate);
}

.tce-prev__photos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.tce-photo {
	height: 225px;
	border-radius: 16px;
	overflow: hidden;
}

.tce-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tce-photo--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed var(--tce-line);
	background: var(--tce-mist);
	font-size: 16px;
	color: var(--tce-slate);
}

/* ---------- Event hero ---------- */

.tce-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(90deg, #000a2d 0%, #0a1f5c 100%);
	color: #fff;
}

.tce-hero__bg,
.tce-hero__bg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.tce-hero__bg {
	opacity: 0.2;
	pointer-events: none;
}

.tce-hero__grid {
	position: relative;
	display: flex;
	align-items: center;
	gap: 40px;
	padding: 97px var(--tce-gutter) 64px;
}

.tce-hero__copy {
	flex: 1;
	min-width: 0;
}

.tce-hero__title {
	font-family: var(--tce-head-font);
	font-weight: 800;
	font-size: 56px;
	line-height: 1.16;
	letter-spacing: -1.68px;
	color: #fff;
}

.tce-hero__lead {
	margin-top: 16px;
	max-width: 500px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--tce-hero-muted);
}

.tce-hero__quote {
	margin-top: 28px;
	padding-left: 19px;
	border-left: 3px solid var(--tce-accent);
	font-size: 16px;
	line-height: 1.6;
}

.tce-hero__quote blockquote {
	border: 0 !important;
	font-style: normal;
	color: var(--tce-hero-muted);
}

.tce-hero__quote figcaption strong {
	font-weight: 600;
	color: #fff;
}

.tce-hero__quote figcaption span {
	color: var(--tce-hero-muted);
}

.tce-hero__btn {
	margin-top: 28px;
}

.tce-hero__form {
	flex: 0 0 421px;
	max-width: 100%;
	padding: 26px;
	border-radius: 18px;
	background: var(--tce-panel);
	scroll-margin-top: 100px;
}

.tce-hero__form h2 {
	margin-bottom: 22px;
	font-family: var(--tce-head-font);
	font-weight: 700;
	font-size: 26px;
	line-height: 1.3;
	letter-spacing: -0.26px;
	color: #fff;
}

.tce-hero__form form p {
	margin: 0 0 12px;
}

.tce-hero__form label,
.tce-hero__form legend {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.6;
	color: #fff;
}

.tce-hero__form input[type="text"],
.tce-hero__form input[type="email"],
.tce-hero__form input[type="tel"],
.tce-hero__form input[type="url"],
.tce-hero__form select,
.tce-hero__form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-family: var(--tce-body-font);
	font-size: 16px;
	line-height: 1.6;
}

.tce-hero__form input::placeholder,
.tce-hero__form textarea::placeholder {
	color: #9aa7b8;
}

.tce-hero__form input:focus,
.tce-hero__form select:focus,
.tce-hero__form textarea:focus {
	outline: none;
	border-color: var(--tce-cyan);
	box-shadow: 0 0 0 3px rgba(73, 225, 212, 0.2);
}

.tce-hero__form fieldset {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
}

.tce-hero__form fieldset label {
	display: flex;
	gap: 8px;
	font-weight: 400;
	color: var(--tce-hero-muted);
}

.tce-hero__form input[type="submit"],
.tce-hero__form button[type="submit"] {
	width: 100%;
	margin-top: 6px;
	padding: 13px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--tce-gradient);
	color: #fff;
	font-family: var(--tce-body-font);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.5;
	cursor: pointer;
}

.tce-hero__form .hf-message {
	color: #fff;
}

.tce-hero__strip {
	position: relative;
	display: flex;
	gap: 24px;
	padding: 20px var(--tce-gutter);
	border-top: 1px solid var(--tce-glass-stroke);
	background: var(--tce-deep);
}

.tce-hero__stat {
	flex: 1;
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.tce-hero__stat div {
	display: flex;
	flex-direction: column;
	font-weight: 600;
	line-height: 1.5;
}

.tce-hero__stat span {
	font-size: 12px;
	letter-spacing: 0.96px;
	text-transform: uppercase;
	color: var(--tce-accent);
}

.tce-hero__stat strong {
	font-weight: 600;
	font-size: 17px;
	color: #fff;
}

/* ---------- CTA strip ---------- */

.tce-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 44px var(--tce-gutter);
	background: var(--tce-deep);
}

.tce-cta__copy h2 {
	font-family: var(--tce-head-font);
	font-weight: 800;
	font-size: 36px;
	line-height: 1.16;
	letter-spacing: -1.08px;
	color: #fff;
}

.tce-cta__copy p {
	margin-top: 6px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--tce-hero-muted);
}

/* ---------- Built-in event page ---------- */

body.tce-single-event {
	overflow-x: hidden;
}

.tce-page > .tce-hero,
.tce-page > .tce-cta,
.tce-page > .tce-section {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.tce-section {
	box-sizing: border-box;
	padding: 72px var(--tce-gutter);
	background: var(--tce-paper);
}

.tce-section--mist {
	background: var(--tce-mist);
}

.tce-section + .tce-section:not(.tce-section--mist) {
	padding-top: 0;
}

.tce-section.tce-section--mist + .tce-section {
	padding-top: 72px;
}

.tce-container {
	max-width: 1248px;
	margin: 0 auto;
}

.tce-content {
	max-width: 760px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--tce-slate);
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.tce-hero__grid {
		flex-direction: column;
		align-items: stretch;
		padding-top: 64px;
	}

	.tce-hero__title {
		font-size: 44px;
	}

	.tce-hero__form {
		flex-basis: auto;
		max-width: 560px;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.tce-edition__date {
		flex-basis: 80px;
	}

	.tce-edition__body {
		padding: 20px;
	}

	.tce-past__photo {
		height: 220px;
	}

	.tce-prev__text {
		min-height: 0;
	}

	.tce-photo {
		height: 160px;
	}

	.tce-hero__grid {
		padding: 48px 16px 40px;
	}

	.tce-hero__title {
		font-size: 34px;
		letter-spacing: -1px;
	}

	.tce-hero__lead {
		font-size: 17px;
	}

	.tce-hero__form {
		padding: 20px;
	}

	.tce-hero__strip {
		flex-direction: column;
		gap: 14px;
		padding: 20px 16px;
	}

	.tce-panel {
		padding: 20px;
	}

	.tce-cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 36px 16px;
	}

	.tce-cta__copy h2 {
		font-size: 28px;
	}

	.tce-section {
		padding: 48px 16px;
	}

	.tce-section.tce-section--mist + .tce-section {
		padding-top: 48px;
	}
}
