:root {
	--tw-duration: 0.5s;
}

.vee-week-view {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0;
}
.vee-day {
	padding: 0.5rem;
	border-right-width: 1px;
	border-right-style: solid;
}
.vee-day:last-child {
	border-right: none !important;
}
.vee-events {
	list-style: none;
	margin: 0;
	padding: 0;
}
.vee-event {
	margin: 0 0 6px;
	padding: 0;
}
.vee-time {
	margin-left: 6px;
	font-size: 12px;
}
.vee-venue {
	margin-left: 6px;
	font-size: 12px;
}
/* Date header stacked layout */
.vee-day__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	margin: 0 0 2rem;
}
.vee-day__month,
.vee-day__dow {
	font-size: 16px;
	font-weight: 600;
	text-transform: lowercase;
}
.vee-day__day {
	font-size: 72px;
	font-weight: 300;
	margin: 2px 0;
}
.ve-event-card {
	position: relative;
	transition:
	box-shadow var(--tw-duration) ease,
	transform var(--tw-duration) ease;
	overflow: hidden;
	transition: border-color var(--tw-duration) ease;
}
.ve-event-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	transform: none;
}
.ve-event-card__body {
	padding: 16px;
}
.ve-event-card__header {
	position: relative;
}
.vee-event:not(:last-child) {
	margin-bottom: 1.5rem;
}
.ve-event-card__image img {
	width: 100%;
	display: block;
	aspect-ratio: unset !important;
	object-fit: unset !important;
}
.ve-event-card__link {
	/* must be static so ::after stretches to the nearest positioned ancestor (.ve-event-card) */
	position: static;
	display: block;
	margin-bottom: 1rem;
}
/* Stretched link makes the whole card clickable via the title link */
.stretched-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.ve-event-card :is(h3, time, span, a, .ve-event-card__image img) {
	transition: all var(--tw-duration) ease;
}

.ve-event-card :is(.ve-event-card__header) {
	transition: transform var(--tw-duration) ease;
}

.ve-event-card .ve-event-card__image {
	overflow: hidden;
}

.ve-event-card:hover .ve-event-card__image img {
	transform: scale(1.05);
}

.ve-event-card:hover {
	border-color: color-mix(in oklab, #ffb900 50%, transparent);
}

/* Tickets button */
.ve-event-card__actions {
	margin-top: 0.5rem;
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
}
.ve-event-card__tickets-btn {
	display: flex;
	align-items: start;
	padding: 0.5rem 1.5rem;
	text-decoration: none;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.2;
}

.ve-event-card__meta {
	display: flex;
	margin-bottom: 1.5rem;
}
.ve-event-card__meta svg {
	width: 15px;
	fill: oklch(0.707 0.022 261.325);
	margin-right: 0.5em;
}
.ve-event-card__tickets-btn svg {
	width: 15px;
	fill: currentColor;
	margin-right: 0.5em;
}
/* Ensure venue link remains above stretched overlay */
.ve-event-card__venue {
	position: absolute;
	z-index: 2;
	font-size: 12px; /* smaller label */
	font-weight: 600;
	line-height: 1.1;
	top: 12px;
	right: 12px;
	padding: 3px 8px;
	border-radius: 8px;
	border-width: 1px;
	border-style: solid;
}
/* Hover/focus keep pill readable */
.ve-event-card__venue:hover,
.ve-event-card__venue:focus {
	text-decoration: none;
}
/* Visible keyboard focus ring */
.ve-event-card__venue:focus-visible {
	outline: 2px solid #f5f5f5;
	outline-offset: 2px;
}

.ve-event-card__title,
.ve-event-card__meta,
.ve-event-card__actions {
	padding-inline: 4px;
	font-size: 16px !important;
	line-height: 1.1;
}

.vee-list-view {
	width: 100%;
	max-width: 1066px;
	margin: 0 auto;
}

.vee-list-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px;
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: start;
}

.vee-list-grid__item {
	display: flex;
}

.vee-list-grid__item .ve-event-card {
	width: 100%;
	height: 100%;
}

/* visible focus style for accessibility */
.ve-event-card__link:focus-visible,
.ve-event-card__tickets-btn:focus-visible,
.ve-event-card__tickets-btn--disabled:focus-visible {
	outline: 2px solid #2b6cb0;
	outline-offset: 2px;
	border-radius: 4px;
}

.ve-event-card__tickets-btn--disabled {
	pointer-events: none;
	cursor: not-allowed;
	opacity: 0.6;
}
/* Elevation cue when any focus is inside the card */
.ve-event-card:focus-within {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ve-event-card__title a {
	font-weight: bold;
}
/* Pagination */
.vee-week-pager {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	justify-content: space-between;
	margin: 0 0 1rem;
}
.vee-week-pager a {
	text-decoration: none;
}
.vee-week-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
	justify-content: center;
	margin: 0 auto 1.75rem;
}
.vee-week-controls__field {
	display: flex;
	flex-direction: column;
	min-width: 200px;
}
.vee-week-controls__field + .vee-week-controls__field {
	margin-left: 8px;
}

.vee-week-controls__field label {
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.78rem;
}
.vee-week-controls__field input[type="search"],
.vee-week-controls__field input[type="text"] {
	text-align: left;
}
.vee-week-controls__field input[type="search"],
.vee-week-controls__field input[type="text"] {
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	font-size: 1rem;
}
.vee-week-controls__field input[type="search"]:focus,
.vee-week-controls__field input[type="text"]:focus {
	outline: 2px solid #2b6cb0;
	outline-offset: 1px;
}

.vee-week-controls__actions button,
.vee-week-controls__actions .vee-week-controls__reset {
	padding: 0.5rem 1.5rem;
	border-radius: 8px;
	border: none;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	font-weight: 600;
	text-transform: uppercase;
}
.vee-week-controls__actions button {
	background: #ffb900;
	color: #1a1a1a;
	box-shadow: 0 6px 14px rgba(255, 186, 8, 0.3);
	line-height: 1.2;
	margin-block: 6px;
	text-transform: none;
	transition: all 0.3s ease;
}
.vee-week-controls__actions button:hover,
.vee-week-controls__actions button:focus-visible {
	background: #fe9a00;
	box-shadow: 0 8px 18px rgba(255, 186, 8, 0.35);
}
.vee-week-controls__reset {
	background-color: transparent;
	color: #ffd31d;
}
.vee-week-controls__reset:hover,
.vee-week-controls__reset:focus-visible {
	color: #f5c613;
}

/* Datepicker theme */
.ui-datepicker {
	background-color: #1f1f1f;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #f7f7f7;
	padding: 0.5rem;
	border-radius: 8px;
	font-size: 0.9rem;
	z-index: 3 !important;
}
.ui-datepicker .ui-datepicker-header {
	background-color: rgba(255, 255, 255, 0.08);
	border: none;
	color: inherit;
}
.ui-datepicker-title {
	font-weight: 600;
}
.ui-datepicker-calendar a {
	color: inherit;
	text-decoration: none;
	padding: 0.25rem;
	display: inline-block;
	border-radius: 4px;
}
.ui-datepicker-calendar a:hover,
.ui-datepicker-calendar .ui-state-hover,
.ui-datepicker-calendar .ui-state-active {
	background-color: #9b51e0;
	color: #fff !important;
}
@media (max-width: 1024px) {
	.vee-week-view {
	grid-template-columns: repeat(3, 1fr);
	}

	.vee-list-grid {
	gap: 32px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.vee-week-controls {
	align-items: end;
	max-width: 100%;
	}
	.vee-week-controls__actions {
	justify-content: flex-start;
	justify-content: baseline;

	& button {
		line-height: 1.2;
		margin-block: 6px;
	}
	}
}
@media (max-width: 640px) {
	.vee-week-view {
	grid-template-columns: 1fr;
	}

	.vee-list-grid {
	gap: 24px;
	grid-template-columns: 1fr;
	}
}

/* Venue-specific banner colors (light backgrounds, dark text) */
/* Tavern Stage (free shows) */

.ve-venue--tavern-stage-the-composers-room .ve-event-card__venue {
	background-color: #3c0366;
	color: #dab2ff;
	border-color: color-mix(in oklab, #c27aff 70%, transparent);
}

.ve-venue--the-composers-room .ve-event-card__venue {
	background-color: color-mix(
	in oklab,
	oklch(0.302 0.056 229.695) 80%,
	transparent
	);
	color: oklch(0.865 0.127 207.078);
	border-color: color-mix(in oklab, oklch(0.789 0.154 211.53) 70%, transparent);
}

.ve-event-card__time {
	font-size: 14px;
	color: oklch(0.707 0.022 261.325);
}

.vee-week-view .vee-day {
	padding: 16px;
}

.vee-week-view .ve-event-card__body {
	padding-inline: 5px !important;
}

.ve-event-card__meta svg {
	flex-shrink: 0;
}

.vee-week-view .ve-event-card__venue {
	bottom: 6px;
	right: 6px;
	left: auto;
	top: auto;
}

.vee-week-view .ve-event-card__tickets-btn--disabled {
	background-color: #dab2ff;
}

.tw-autocomplete-suggestion {
	background-color: #1f1f1f;
	color: #f7f7f7;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 0.5rem 0.75rem;
}
.autocomplete-suggestion.tw-autocomplete-suggestion.active,
.autocomplete-suggestion.tw-autocomplete-suggestion:hover {
	background-color: #9b51e0;
	color: #fff;
}
.tw-autocomplete-suggestion .vee-autocomplete-date {
	font-size: 0.85rem;
	opacity: 0.85;
}
.tw-autocomplete-suggestion .vee-autocomplete-sep {
	color: rgba(255, 255, 255, 0.4);
	margin: 0 0.25rem;
}
.autocomplete-suggestion.tw-autocomplete-suggestion.event {
	font-weight: 600;
	font-size: 14px;
}

.tw-search-input-nav {
	width: 470px !important;
}

.tw-autocomplete-suggestion.event:before {
	content: "";
	display: none;
}

.ui-datepicker-calendar td {
	text-align: right;
	padding: 0.5rem 0.75rem;
}

.ui-datepicker-header {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.ui-datepicker-header  .ui-datepicker-title {
	flex-basis: 100%;
}

.ui-datepicker-header  :is(.ui-datepicker-prev, .ui-datepicker-next) {
	cursor: pointer;
}
