:root {
	--th-ink: #17133e;
	--th-muted: #68637d;
	--th-line: #ded9ef;
	--th-soft: #f7f4ee;
	--th-brand: #6d4aff;
	--th-brand-dark: #4329cc;
	--th-accent: #ff5c7a;
	--th-mint: #3ce7b2;
	--th-danger: #c52828;
	--th-radius: 18px;
}

/* TicketHouse 1.1 brand system: editorial type, warm paper and vivid stage colours. */
.th-events-shell {
	background:
		radial-gradient(circle at 92% 3%, rgba(255, 92, 122, .22) 0 10%, transparent 30%),
		linear-gradient(150deg, #f7f4ee 0%, #fff 58%, #eee9ff 100%);
	border: 1px solid rgba(23, 19, 62, .08);
	border-radius: 34px;
	overflow: hidden;
	padding: clamp(26px, 5vw, 60px);
	position: relative;
}

.th-events-shell::before {
	background: var(--th-brand);
	content: "";
	height: 9px;
	inset: 0 0 auto;
	position: absolute;
}

.th-events-heading {
	max-width: 840px;
}

.th-events-heading h2 {
	color: var(--th-ink);
	font-size: clamp(2.6rem, 7vw, 5.4rem);
	font-weight: 900;
	line-height: .91;
	max-width: 780px;
	text-wrap: balance;
}

.th-events-heading > p:last-child {
	color: var(--th-muted);
	max-width: 590px;
}

.th-kicker,
.th-event-card__date {
	color: var(--th-brand);
	letter-spacing: .16em;
}

.th-event-grid {
	gap: 20px;
}

.th-event-card {
	border: 0;
	border-radius: 0 26px 26px 26px;
	box-shadow: 0 18px 48px rgba(23, 19, 62, .1);
	position: relative;
}

.th-event-card::before {
	background: var(--th-accent);
	content: "";
	height: 7px;
	inset: 0 0 auto;
	position: absolute;
	z-index: 2;
}

.th-event-card:hover {
	box-shadow: 0 25px 62px rgba(23, 19, 62, .16);
}

.th-event-card__placeholder {
	background:
		linear-gradient(25deg, transparent 42%, rgba(255, 255, 255, .1) 42% 48%, transparent 48%),
		radial-gradient(circle at 82% 20%, #ff5c7a 0, transparent 26%),
		linear-gradient(140deg, #17133e, #6d4aff);
}

.th-event-card__placeholder span {
	border-radius: 4px 14px 14px;
}

.th-event-card__body {
	border-left: 6px solid #eae5ff;
	padding: 27px;
}

.th-event-card__body h3 {
	color: var(--th-ink);
	font-size: 1.6rem;
	font-weight: 900;
}

.th-button {
	border-radius: 4px 18px 18px;
	box-shadow: 0 8px 0 #3e27b8;
	letter-spacing: -.01em;
}

.th-button:hover {
	box-shadow: 0 5px 0 #35209f;
	transform: translateY(3px);
}

.th-booking {
	border: 0;
	border-left: 8px solid var(--th-accent);
	border-radius: 0 30px 30px;
	box-shadow: 0 28px 85px rgba(23, 19, 62, .14);
}

.th-booking__intro {
	background:
		radial-gradient(circle at 82% 20%, rgba(109, 74, 255, .8), transparent 30%),
		#17133e;
	border: 0;
	color: #fff;
}

.th-booking__intro .th-kicker {
	color: #cfc8ff;
}

.th-booking__intro h2 {
	color: #fff;
	font-weight: 900;
}

.th-trust {
	color: var(--th-mint);
}

.th-showing-tabs {
	background: #eee9ff;
	border-color: #d8d0ff;
}

.th-showing-tab {
	border-radius: 5px 16px 0 0;
}

.th-showing-tab.is-active {
	border-color: #d8d0ff;
	box-shadow: inset 0 5px 0 var(--th-brand);
}

.th-showing-summary {
	background: var(--th-soft);
	border-left: 5px solid var(--th-mint);
	border-radius: 0 16px 16px;
	padding: 18px 20px;
}

.th-ticket-types {
	border-color: #d8d0ff;
	border-radius: 4px 18px 18px;
}

.th-ticket-type {
	background: #fff;
}

.th-ticket-type + .th-ticket-type {
	border-color: #e8e3f4;
}

.th-ticket-type__copy h3 {
	color: var(--th-ink);
	font-weight: 900;
}

.th-quantity {
	border-color: #bcb2eb;
	border-radius: 4px 12px 12px;
	color: var(--th-ink);
	font-weight: 800;
}

.th-ticket-form__footer {
	border-top: 1px dashed #d8d0ff;
	margin-top: 26px;
}

/* My account order tickets. */
.th-account-tickets {
	background: var(--th-soft);
	border-left: 8px solid var(--th-accent);
	border-radius: 0 28px 28px;
	box-shadow: 0 22px 60px rgba(23, 19, 62, .1);
	margin-top: 40px;
	overflow: hidden;
	padding: clamp(22px, 4vw, 36px);
}

.th-account-tickets__header {
	align-items: center;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin-bottom: 24px;
}

.th-account-tickets__header h2 {
	color: var(--th-ink);
	font-size: clamp(1.8rem, 4vw, 2.7rem);
	font-weight: 900;
	letter-spacing: -.04em;
	line-height: 1;
	margin: 0 0 8px;
}

.th-account-tickets__header p:not(.th-kicker) {
	color: var(--th-muted);
	margin: 0;
}

.th-download-all {
	flex: 0 0 auto;
}

.th-account-ticket-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.th-account-ticket {
	background: #fff;
	border-radius: 0 20px 20px;
	box-shadow: 0 10px 30px rgba(23, 19, 62, .08);
	overflow: hidden;
	padding: 17px;
	position: relative;
	text-align: center;
}

.th-account-ticket::before {
	background: var(--th-brand);
	content: "";
	height: 6px;
	inset: 0 0 auto;
	position: absolute;
}

.th-account-ticket__qr {
	display: inline-block;
	margin: 7px auto 10px;
}

.th-account-ticket__qr img {
	display: block;
	height: auto;
	max-width: 100%;
}

.th-account-ticket__copy {
	display: grid;
	gap: 3px;
}

.th-account-ticket__copy strong {
	color: var(--th-ink);
	font-size: 1.02rem;
}

.th-account-ticket__copy span,
.th-account-ticket__copy small {
	color: var(--th-muted);
}

.th-account-ticket__copy small {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .08em;
	margin-top: 4px;
}

.th-account-ticket__actions {
	border-top: 1px dashed var(--th-line);
	display: grid;
	gap: 7px;
	margin-top: 14px;
	padding-top: 14px;
}

.th-account-ticket__actions a {
	color: var(--th-brand-dark);
	font-size: .9rem;
	font-weight: 800;
	text-decoration: none;
}

.th-account-ticket__actions .th-ticket-pdf-small {
	color: var(--th-muted);
	font-size: .76rem;
	font-weight: 600;
}

@media (max-width: 720px) {
	.th-events-shell {
		border-radius: 24px;
		padding: 31px 18px 22px;
	}

	.th-account-tickets__header {
		align-items: stretch;
		flex-direction: column;
	}

	.th-download-all {
		width: 100%;
	}
}

.th-events-shell,
.th-booking {
	color: var(--th-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.th-events-heading {
	max-width: 760px;
	margin: 0 0 34px;
}

.th-events-heading h2,
.th-booking h2 {
	font-size: clamp(2rem, 5vw, 3.7rem);
	line-height: 1;
	letter-spacing: -.045em;
	margin: 0 0 14px;
}

.th-events-heading > p:last-child {
	color: var(--th-muted);
	font-size: 1.1rem;
}

.th-kicker,
.th-event-card__date {
	color: var(--th-brand-dark);
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .12em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.th-event-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
	gap: 24px;
}

.th-event-card {
	background: #fff;
	border: 1px solid var(--th-line);
	border-radius: var(--th-radius);
	box-shadow: 0 16px 46px rgba(16, 24, 40, .08);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}

.th-event-card:hover {
	box-shadow: 0 20px 56px rgba(16, 24, 40, .13);
	transform: translateY(-3px);
}

.th-event-card__image {
	aspect-ratio: 16 / 10;
	display: block;
	overflow: hidden;
}

.th-event-card__image img {
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
	width: 100%;
}

.th-event-card:hover .th-event-card__image img {
	transform: scale(1.035);
}

.th-event-card__placeholder {
	align-items: center;
	background: radial-gradient(circle at 75% 20%, #a999ff 0, transparent 28%), linear-gradient(140deg, #1b1646, #6d4aff);
	color: #fff;
	display: flex;
	font-size: 3rem;
	font-weight: 900;
	height: 100%;
	justify-content: center;
	letter-spacing: -.08em;
}

.th-event-card__placeholder span {
	border: 2px solid rgba(255,255,255,.8);
	border-radius: 16px;
	padding: 12px 16px;
}

.th-event-card__body {
	padding: 24px;
}

.th-event-card__body h3 {
	font-size: 1.45rem;
	letter-spacing: -.025em;
	margin: 0 0 10px;
}

.th-event-card__body h3 a {
	color: var(--th-ink);
	text-decoration: none;
}

.th-event-card__body > p:not(.th-event-card__date) {
	color: var(--th-muted);
	margin: 0 0 20px;
}

.th-button {
	align-items: center;
	background: var(--th-brand);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 7px 18px rgba(109, 74, 255, .25);
	color: #fff !important;
	cursor: pointer;
	display: inline-flex;
	font-size: 1rem;
	font-weight: 800;
	gap: 10px;
	justify-content: center;
	min-height: 52px;
	padding: 0 24px;
	text-decoration: none !important;
	transition: background .15s ease, transform .15s ease;
}

.th-button:hover {
	background: var(--th-brand-dark);
	transform: translateY(-1px);
}

.th-button:focus-visible,
.th-showing-tab:focus-visible,
.th-quantity button:focus-visible,
.th-quantity input:focus-visible {
	outline: 3px solid var(--th-accent);
	outline-offset: 3px;
}

.th-button--small {
	font-size: .9rem;
	min-height: 44px;
	padding: 0 18px;
}

.th-event-copy {
	font-size: 1.075rem;
	margin-bottom: 48px;
}

.th-booking {
	background: #fff;
	border: 1px solid var(--th-line);
	border-radius: 24px;
	box-shadow: 0 24px 75px rgba(16, 24, 40, .11);
	margin: 48px 0;
	overflow: hidden;
}

.th-booking__intro {
	align-items: end;
	background: linear-gradient(135deg, #f7f5ff, #fff);
	border-bottom: 1px solid var(--th-line);
	display: flex;
	justify-content: space-between;
	padding: clamp(24px, 5vw, 42px);
}

.th-booking__intro h2 {
	font-size: clamp(1.8rem, 4vw, 3rem);
	margin: 0;
}

.th-trust {
	color: #355b3b;
	display: flex;
	flex-wrap: wrap;
	font-size: .85rem;
	font-weight: 700;
	gap: 14px;
}

.th-showing-tabs {
	background: var(--th-soft);
	border-bottom: 1px solid var(--th-line);
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 16px clamp(18px, 4vw, 38px) 0;
	scrollbar-width: thin;
}

.th-showing-tab {
	background: transparent;
	border: 1px solid transparent;
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	color: var(--th-muted);
	cursor: pointer;
	display: grid;
	flex: 0 0 auto;
	min-width: 140px;
	padding: 14px 18px 16px;
	text-align: left;
}

.th-showing-tab strong {
	color: inherit;
	font-size: 1rem;
}

.th-showing-tab span {
	font-size: .85rem;
}

.th-showing-tab em {
	color: var(--th-danger);
	font-size: .7rem;
	font-style: normal;
	font-weight: 800;
	margin-top: 4px;
	text-transform: uppercase;
}

.th-showing-tab.is-active {
	background: #fff;
	border-color: var(--th-line);
	color: var(--th-ink);
	position: relative;
}

.th-showing-tab.is-active::after {
	background: #fff;
	bottom: -1px;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	right: 0;
}

.th-showing-panel {
	padding: clamp(22px, 5vw, 42px);
}

.th-showing-summary {
	display: grid;
	gap: 9px;
	margin-bottom: 28px;
}

.th-showing-summary > div {
	align-items: center;
	display: flex;
	gap: 10px;
}

.th-showing-summary .dashicons {
	color: var(--th-brand);
}

.th-ticket-types {
	border: 1px solid var(--th-line);
	border-radius: 14px;
	overflow: hidden;
}

.th-ticket-type {
	align-items: center;
	display: grid;
	gap: 22px;
	grid-template-columns: minmax(0, 1fr) auto auto;
	padding: 20px 22px;
}

.th-ticket-type + .th-ticket-type {
	border-top: 1px solid var(--th-line);
}

.th-ticket-type.is-sold-out {
	background: var(--th-soft);
	opacity: .66;
}

.th-ticket-type__copy h3 {
	font-size: 1.05rem;
	margin: 0 0 3px;
}

.th-ticket-type__copy p {
	color: var(--th-muted);
	font-size: .88rem;
	margin: 0;
}

.th-ticket-type__price {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.th-quantity {
	background: #f1edff;
	border: 1px solid #bcb2eb;
	border-radius: 4px 14px 14px;
	display: grid;
	flex: 0 0 auto;
	grid-template-columns: 42px 48px 42px;
	overflow: hidden;
}

.th-quantity button,
.th-quantity input {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--th-ink);
	font: inherit;
	font-weight: 850;
	height: 46px;
	margin: 0;
	min-height: 46px;
	padding: 0;
	text-align: center;
}

.th-quantity button {
	cursor: pointer;
	font-size: 1.35rem;
	transition: background .15s ease, color .15s ease;
}

.th-quantity button:first-child {
	border-right: 1px solid #d8d0ff;
}

.th-quantity button:last-child {
	background: var(--th-brand);
	color: #fff;
}

.th-quantity button:hover:not(:disabled) {
	background: var(--th-brand-dark);
	color: #fff;
}

.th-quantity button:disabled {
	cursor: not-allowed;
	opacity: .35;
}

.th-quantity input {
	-moz-appearance: textfield;
	background: #fff;
	min-width: 0;
	width: 48px;
}

.th-quantity input::-webkit-inner-spin-button,
.th-quantity input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.th-low-stock {
	color: var(--th-danger);
	display: block;
	font-size: .75rem;
	font-weight: 800;
	margin-top: 6px;
}

.th-ticket-form__footer {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	padding-top: 24px;
}

.th-ticket-form__footer > p {
	color: var(--th-muted);
	font-size: .83rem;
	margin: 0;
}

.th-form-error {
	color: var(--th-danger) !important;
	font-weight: 800;
}

.th-empty-state,
.th-sold-out,
.th-notice {
	background: var(--th-soft);
	border-radius: 14px;
	padding: 28px;
	text-align: center;
}

.th-sold-out {
	display: grid;
	gap: 4px;
}

.th-notice--warning {
	margin: 30px;
}

@media (max-width: 680px) {
	.th-booking {
		border-left: 0;
		border-radius: 0;
		border-right: 0;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}

	.th-booking__intro {
		align-items: start;
		flex-direction: column;
		gap: 18px;
	}

	.th-ticket-type {
		gap: 10px;
		grid-template-columns: 1fr auto;
	}

	.th-ticket-type__copy {
		grid-column: 1 / -1;
	}

	.th-ticket-form__footer {
		align-items: stretch;
		flex-direction: column;
	}

	.th-button {
		width: 100%;
	}
}

/* Keep the brand layer last so themes and the structural rules above cannot flatten it. */
.th-events-shell {
	background:
		radial-gradient(circle at 92% 3%, rgba(255, 92, 122, .22) 0 10%, transparent 30%),
		linear-gradient(150deg, #f7f4ee 0%, #fff 58%, #eee9ff 100%);
	border: 1px solid rgba(23, 19, 62, .08);
	border-radius: 34px;
	overflow: hidden;
	padding: clamp(31px, 5vw, 60px);
	position: relative;
}

.th-events-heading {
	max-width: 840px;
}

.th-events-heading h2 {
	color: var(--th-ink);
	font-size: clamp(2.6rem, 7vw, 5.4rem);
	font-weight: 900;
	line-height: .91;
}

.th-event-card {
	border: 0;
	border-radius: 0 26px 26px 26px;
	box-shadow: 0 18px 48px rgba(23, 19, 62, .1);
}

.th-event-card__body {
	border-left: 6px solid #eae5ff;
	padding: 27px;
}

.th-button {
	border-radius: 4px 18px 18px;
	box-shadow: 0 8px 0 #3e27b8;
}

.th-booking {
	border: 0;
	border-left: 8px solid var(--th-accent);
	border-radius: 0 30px 30px;
	box-shadow: 0 28px 85px rgba(23, 19, 62, .14);
}

.th-booking__intro {
	background:
		radial-gradient(circle at 82% 20%, rgba(109, 74, 255, .8), transparent 30%),
		#17133e;
	border: 0;
	color: #fff;
}

.th-booking__intro h2 {
	color: #fff;
	font-weight: 900;
}

.th-booking__intro .th-kicker {
	color: #cfc8ff;
}

.th-showing-tabs {
	background: #eee9ff;
	border-color: #d8d0ff;
}

.th-showing-summary {
	background: var(--th-soft);
	border-left: 5px solid var(--th-mint);
	border-radius: 0 16px 16px;
	padding: 18px 20px;
}

.th-ticket-types {
	border-color: #d8d0ff;
	border-radius: 4px 18px 18px;
}

@media (max-width: 680px) {
	.th-events-shell {
		border-radius: 24px;
		padding: 31px 18px 22px;
	}

	.th-booking {
		border-left: 8px solid var(--th-accent);
		border-radius: 0 22px 22px;
	}
}
