/* OnCue Tickets – event page blocks (since 1.1.0). Uses the variables from oncue-tickets.css. */

body.oct-event-page,
body.oct-event-page .content-bg,
body.oct-event-page .site-main {
	background: var(--oct-bg);
}

/* Normal blocks placed between OnCue blocks keep a readable width. */
body.oct-event-page .entry-content > :not(.oct-ev):not(.oct-section):not(.alignfull) {
	max-width: calc(var(--global-content-width, 1290px) - 2 * var(--global-content-edge-padding, 1.5rem));
	margin-inline: auto;
	padding-inline: var(--global-content-edge-padding, 1.5rem);
	box-sizing: border-box;
}

body.oct-event-page .entry-content {
	margin: 0;
}

body.oct-event-page .oct-rowsec {
	background: transparent;
}

/* ---------- Header ---------- */

.oct-ev-hero {
	background: var(--oct-navy);
	color: #fff;
	padding-block: 48px 56px;
}

.oct-ev-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}

.oct-ev-hero__poster {
	position: relative;
	aspect-ratio: 4 / 5;
	max-width: 100%;
	border-radius: 14px;
	overflow: hidden;
	background: var(--oct-fallback, var(--oct-navy-2));
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.oct-ev-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.oct-ev-hero__poster .oct-poster__fallback {
	font-size: 44px;
	padding: 24px;
}

.oct-ev-hero__share {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: rgba(13, 17, 50, 0.65);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.oct-ev-hero__cat {
	color: var(--oct-amber);
	font-weight: 600;
	text-decoration: none;
}

.oct-ev-hero__title {
	margin: 10px 0 14px;
	font-family: var(--oct-display);
	font-size: clamp(32px, 4.4vw, 52px);
	font-weight: 700;
	line-height: 1.05;
	color: #fff;
	text-wrap: balance;
}

.oct-ev-hero__line {
	margin: 4px 0 0;
	font-size: 17px;
}

.oct-ev-hero__line--muted {
	color: var(--oct-soft);
}

/* Key dates (Event header block) */
.oct-ev-dates {
	list-style: none;
	margin: 16px 0 0 !important;
	padding: 0 !important;
	display: grid;
	gap: 8px;
	max-width: 560px;
}

.oct-ev-dates li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin: 0;
	padding: 8px 12px;
	border-left: 3px solid var(--oct-amber);
	border-radius: 0 6px 6px 0;
	background: rgba(255, 255, 255, 0.06);
	font-size: 15px;
	line-height: 1.4;
	color: #fff;
}

.oct-ev-dates strong {
	flex-shrink: 0;
	min-width: 118px;
	font-family: var(--oct-display);
	font-weight: 600;
	letter-spacing: 0.3px;
	color: var(--oct-amber);
}

.oct-ev-dates span {
	color: var(--oct-soft);
}

.oct-ev-tags {
	list-style: none;
	margin: 18px 0 0;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-left: 0 !important;
}

.oct-ev-tags li {
	border: 1.5px solid var(--oct-amber);
	padding: 6px 12px;
	font-size: 14px;
	margin: 0;
}

.oct-ev-hero__cta {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 26px;
}

.oct-ev-hero__price {
	font-size: 17px;
}

/* ---------- Cards ---------- */

.oct-ev-card {
	padding-block: 10px;
}

.oct-ev-hero + .oct-ev-card {
	padding-top: 28px;
}

.oct-ev-card__box {
	background: #fff;
	padding: 28px 32px;
	box-shadow: 0 1px 3px rgba(13, 17, 50, 0.08);
	border-radius: 4px;
}

.oct-ev-card__title {
	margin: 0 0 14px;
	font-family: var(--oct-display);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--oct-ink);
}

.oct-ev-card__content {
	font-size: 16px;
	line-height: 1.7;
	max-width: 860px;
}

.oct-ev-card__content > :first-child {
	margin-top: 0;
}

.oct-ev-card__content > :last-child {
	margin-bottom: 0;
}

/* ---------- Tickets (Tickera / Bridge table restyled) ---------- */

.oct-ev-tickets__intro {
	margin: -4px 0 16px;
	color: var(--oct-muted);
}

.oct-ev-tickets__charts {
	margin-bottom: 20px;
}

.oct-ev-tickets__table table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--oct-border);
	margin: 0;
}

.oct-ev-tickets__table th {
	background: #f7f8fb;
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--oct-muted);
	padding: 12px 16px;
	border: 0;
}

.oct-ev-tickets__table td {
	padding: 16px;
	border: 0;
	border-top: 1px solid var(--oct-border);
	vertical-align: middle;
	font-size: 16px;
}

.oct-ev-tickets__table td:first-child {
	font-weight: 600;
	color: var(--oct-ink);
}

.oct-ev-tickets__table .add_to_cart_button,
.oct-ev-tickets__table .button,
.oct-ev-tickets__table button,
.oct-ev-tickets__table input[type="submit"],
.oct-ev-tickets__charts button {
	background: var(--oct-navy) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 4px !important;
	font-family: var(--oct-display);
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 11px 18px !important;
	min-height: 44px;
	cursor: pointer;
}

.oct-ev-tickets__table select,
.oct-ev-tickets__table input[type="number"] {
	min-height: 44px;
	min-width: 72px;
	border: 1px solid #c9ccda;
	border-radius: 4px;
	padding: 0 10px;
	background: #fff;
}

.oct-ev-tickets__table .added_to_cart {
	color: #16664f;
	font-weight: 600;
}

/* ---------- Venue ---------- */

.oct-ev-venue__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
	gap: 32px;
	align-items: center;
}

.oct-ev-venue__grid--nomap {
	grid-template-columns: minmax(0, 1fr);
}

.oct-ev-venue__addr {
	margin: 0 0 8px;
	color: var(--oct-muted);
}

.oct-ev-venue__dir {
	font-weight: 600;
	color: var(--oct-amber-text);
	text-decoration: none;
}

.oct-ev-venue__note {
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--oct-muted);
}

.oct-ev-venue__map {
	aspect-ratio: 16 / 9;
	max-width: 100%;
	border-radius: 6px;
	overflow: hidden;
	background: var(--oct-bg);
}

.oct-ev-venue__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* ---------- Artists ---------- */

.oct-artist {
	display: flex;
	gap: 18px;
	align-items: center;
	background: var(--oct-bg);
	padding: 16px;
	margin-bottom: 12px;
}

.oct-artist:last-child {
	margin-bottom: 0;
}

.oct-artist__photo {
	width: 84px;
	height: 84px;
	flex-shrink: 0;
	border-radius: 50%;
	overflow: hidden;
	background: var(--oct-navy-2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 13px;
	border: 0;
	padding: 0;
}

.oct-artist__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.oct-artist__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.oct-artist__name {
	font-size: 17px;
	color: var(--oct-ink);
}

.oct-artist__role {
	font-size: 14px;
	font-weight: 600;
	color: var(--oct-amber-text);
}

.oct-artist__bio {
	font-size: 15px;
	line-height: 1.6;
	color: #3a3f5c;
}

/* ---------- Fold-out ---------- */

.oct-acc__summary {
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	min-height: 44px;
}

.oct-acc__summary::-webkit-details-marker {
	display: none;
}

.oct-acc__summary .oct-ev-card__title {
	margin: 0;
}

.oct-acc__icon::before {
	content: "+";
	font-size: 26px;
	line-height: 1;
	color: var(--oct-ink);
}

.oct-acc[open] .oct-acc__icon::before {
	content: "\2212";
}

.oct-acc__body {
	padding-top: 12px;
	font-size: 15px;
	line-height: 1.7;
	color: #3a3f5c;
}

/* ---------- Book now bar ---------- */

.oct-bookbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9980;
	background: #fff;
	border-top: 1px solid var(--oct-border);
	box-shadow: 0 -6px 18px rgba(13, 17, 50, 0.1);
	padding-top: 12px;
	padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	transition: transform 0.25s ease;
}

.oct-bookbar.is-hidden {
	transform: translateY(110%);
}

.oct-bookbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.oct-bookbar__text {
	display: flex;
	align-items: baseline;
	gap: 14px;
	min-width: 0;
}

.oct-bookbar__title {
	font-size: 17px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--oct-ink);
}

.oct-bookbar__date {
	font-size: 14px;
	color: var(--oct-muted);
	white-space: nowrap;
}

.oct-bookbar__price {
	font-weight: 700;
	white-space: nowrap;
	color: var(--oct-ink);
}

body.oct-event-page {
	padding-bottom: 76px;
}

/* ---------- Editor helpers ---------- */

.oct-editor-hint {
	font-size: 13px;
	color: var(--oct-muted);
	margin: -6px 0 10px;
}

.oct-artist__pick {
	cursor: pointer;
}

.oct-ev-placeholder {
	padding: 16px;
	background: var(--oct-bg);
	color: var(--oct-muted);
}

.oct-toast {
	position: fixed;
	left: 50%;
	bottom: 160px;
	transform: translateX(-50%);
	z-index: 9999;
	background: var(--oct-ink);
	color: #fff;
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 14px;
}

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

@media (max-width: 1024px) {
	.oct-ev-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.oct-ev-hero__poster {
		width: 100%;
		max-width: 420px;
	}

	.oct-ev-venue__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.oct-bookbar {
		bottom: calc(var(--oct-bnav-h) + env(safe-area-inset-bottom, 0px));
		padding-top: 10px;
		padding-bottom: 10px;
	}

	body.oct-event-page.oct-has-bottom-nav {
		padding-bottom: calc(var(--oct-bnav-h) + 76px + env(safe-area-inset-bottom, 0px));
	}

	.oct-bookbar__text {
		flex-direction: column;
		gap: 0;
	}

	.oct-bookbar__title {
		display: none;
	}
}

@media (max-width: 640px) {
	.oct-ev-hero {
		padding-block: 20px 32px;
	}

	.oct-ev-card__box {
		padding: 22px 18px;
	}

	/* Ticket table becomes stacked cards on phones. */
	.oct-ev-tickets__table table,
	.oct-ev-tickets__table tbody,
	.oct-ev-tickets__table tr,
	.oct-ev-tickets__table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.oct-ev-tickets__table table {
		border: 0;
	}

	.oct-ev-tickets__table thead,
	.oct-ev-tickets__table tr:has(> th) {
		display: none;
	}

	.oct-ev-tickets__table tr {
		border: 1px solid var(--oct-border);
		border-radius: 8px;
		padding: 8px 4px;
		margin-bottom: 10px;
	}

	.oct-ev-tickets__table td {
		border: 0;
		padding: 6px 12px;
	}

	.oct-ev-tickets__table td:first-child {
		font-size: 17px;
	}

	.oct-ev-tickets__table .add_to_cart_button,
	.oct-ev-tickets__table .button {
		width: 100%;
		text-align: center;
	}

	.oct-artist {
		align-items: flex-start;
	}

	.oct-artist__photo {
		width: 60px;
		height: 60px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oct-bookbar {
		transition: none;
	}
}
