/* ============================================================
   TXU Events - Public CSS (Modern Editorial)
   Namespaced under .txu-events to avoid theme conflicts.
   ============================================================ */

.txu-events {
	/* Brand tokens */
	--txu-navy-900: #0a1d3b;
	--txu-navy-800: #102649;
	--txu-navy-700: #1a3358;
	--txu-navy-100: #e8ecf3;

	--txu-gold-500: #c9a14a;
	--txu-gold-600: #b08a3a;
	--txu-gold-100: #f9f3e0;

	--txu-paper:       #faf7f2;
	--txu-paper-dark:  #f3eee5;
	--txu-paper-hover: #f0e9da;
	--txu-ink:         #1a1a1a;
	--txu-ink-soft:    #4a4a4a;
	--txu-ink-muted:   #8a8a8a;
	--txu-rule:        #e5e0d6;

	--txu-success: #2d6a4f;
	--txu-danger:  #8b1e1e;

	/* Type system - two fonts only:
	 *   - Raleway: ALL text (body + headlines). --txu-font-display is an alias
	 *     of body so legacy `font-family: var(--txu-font-display)` references
	 *     throughout the codebase auto-resolve to Raleway without renaming.
	 *   - Inter: ALL numerics (dates, prices, ticket codes, counts, step #s),
	 *     applied via --txu-font-num with tnum + ss01 OpenType features.
	 *     --txu-font-mono is an alias of --txu-font-num for the same reason.
	 *
	 * Playfair Display has been removed per brand decision (2026-05-26).
	 */
	--txu-font-body:    'Raleway', system-ui, -apple-system, sans-serif;
	--txu-font-display: 'Raleway', system-ui, -apple-system, sans-serif;
	--txu-font-num:     'Inter', system-ui, -apple-system, sans-serif;
	--txu-font-mono:    'Inter', system-ui, -apple-system, sans-serif;

	--txu-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	font-family: var(--txu-font-body);
	color: var(--txu-ink);
	background: var(--txu-paper);

	/* Full-bleed paper background: container stays max-width:1320px for content,
	 * but the paper visually extends to the viewport edges via box-shadow.
	 * clip-path: inset(0 -100vmax) constrains the shadow to left/right only so
	 * it doesn't bleed above (into the hero) or below (into the footer area). */
	box-shadow: 0 0 0 100vmax var(--txu-paper);
	clip-path: inset(0 -100vmax);

	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	max-width: 1320px;
	margin: 0 auto;
	padding: 1rem 2rem 4rem;
}

/* Apply tabular figures + slashed zero anywhere we use the numeric font.
 * This must come after .txu-events so it inherits the cascade. */
.txu-events [class*="txu-"][class*="-num"],
.txu-events .txu-count,
.txu-events .txu-day,
.txu-events .txu-month,
.txu-events .txu-weekday,
.txu-events .txu-event-spots,
.txu-events .txu-card-time,
.txu-events .txu-meta-item.txu-price,
.txu-events code,
.txu-events .txu-mono,
.txu-events .txu-num,
.txu-events .txu-num * {
	font-family: var(--txu-font-num);
	font-feature-settings: 'tnum' 1, 'ss01' 1, 'cv11' 1;
	font-variant-numeric: tabular-nums;
}

.txu-events *, .txu-events *::before, .txu-events *::after {
	box-sizing: border-box;
}

.txu-events img { max-width: 100%; height: auto; display: block; }
.txu-events button { font-family: inherit; cursor: pointer; }

/* ============================================================
   Controls bar
   ============================================================ */

.txu-controls-bar {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--txu-rule);
	background: var(--txu-paper);
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(8px);
}

.txu-filters-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

/* ---- Search ---- */
.txu-search-row { width: 100%; }

.txu-search {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	width: 100%;
	padding: 0.625rem 0.875rem;
	background: #fff;
	border: 1px solid var(--txu-rule);
	border-radius: 10px;
	transition: border-color 200ms var(--txu-ease-out),
	            box-shadow 200ms var(--txu-ease-out);
}
.txu-search:hover { border-color: var(--txu-navy-700); }
.txu-search:focus-within {
	border-color: var(--txu-navy-900);
	box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.18);
}

.txu-search-icon {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	stroke: var(--txu-ink-muted);
	stroke-width: 2;
	fill: none;
	stroke-linecap: round;
}

.txu-search-input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 0.9375rem;
	color: var(--txu-ink);
	padding: 0;
	line-height: 1.4;
}
.txu-search-input::placeholder {
	color: var(--txu-ink-muted);
	opacity: 1;
}
/* hide the native clear "x" so our custom one is the only clear UI */
.txu-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.txu-search-clear {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	background: transparent;
	border: none;
	border-radius: 50%;
	color: var(--txu-ink-muted);
	padding: 0;
	transition: background-color 180ms var(--txu-ease-out), color 180ms var(--txu-ease-out);
}
.txu-search-clear svg {
	width: 14px; height: 14px;
	stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round;
}
.txu-search-clear:hover {
	background: var(--txu-paper-dark);
	color: var(--txu-ink);
}
.txu-search-clear[hidden] { display: none; }

.txu-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	flex: 1;
}

.txu-filter-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	background: transparent;
	border: 1px solid var(--txu-rule);
	color: var(--txu-ink-soft);
	font-size: 0.8125rem;
	font-weight: 500;
	font-family: inherit;
	transition: all 200ms var(--txu-ease-out);
}
.txu-filter-chip:hover {
	border-color: var(--txu-navy-700);
	color: var(--txu-ink);
}
.txu-filter-chip.active {
	background: var(--txu-navy-900);
	border-color: var(--txu-navy-900);
	color: #fff;
}
.txu-events .txu-filter-chip .txu-count {
	margin-left: 0.375rem;
	font-family: var(--txu-font-num) !important;
	font-feature-settings: 'tnum' 1, 'ss01' 1, 'cv11' 1;
	font-variant-numeric: tabular-nums;
	font-size: 0.6875rem;
	font-weight: 600;
	opacity: 0.65;
}

.txu-view-switcher {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	background: var(--txu-paper-dark);
	border-radius: 8px;
}
.txu-view-btn {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	background: transparent;
	border: none;
	border-radius: 6px;
	color: var(--txu-ink-muted);
	transition: all 200ms var(--txu-ease-out);
}
.txu-view-btn svg {
	width: 18px; height: 18px;
	stroke: currentColor; stroke-width: 2; fill: none;
}
.txu-view-btn:hover { color: var(--txu-navy-900); }
.txu-view-btn.active {
	background: #fff;
	color: var(--txu-navy-900);
	box-shadow: 0 1px 3px rgba(10,29,59,0.08);
}

/* ============================================================
   View panes - display:none for inactive (no leakage)
   ============================================================ */

.txu-view-container { padding-top: 2.5rem; min-height: 60vh; }

.txu-view-pane { display: none; }
.txu-view-pane.active {
	display: block;
	animation: txuPaneIn 400ms var(--txu-ease-out);
}
@keyframes txuPaneIn {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LIST VIEW
   ============================================================ */

.txu-events-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.txu-event-row {
	display: grid;
	grid-template-columns: 90px 96px 1fr auto;
	gap: 1.75rem 2rem;
	align-items: center;
	padding: 1.5rem 1.75rem;
	background: #fff;
	border: 1px solid var(--txu-rule);
	border-radius: 2px;
	box-shadow: 0 1px 0 var(--txu-paper-dark);
	cursor: pointer;
	transition: transform 280ms var(--txu-ease-out),
	            box-shadow 280ms var(--txu-ease-out),
	            border-color 280ms var(--txu-ease-out);
	opacity: 0;
	transform: translateY(12px);
	animation: txuRevealUp 600ms var(--txu-ease-out) forwards;
	position: relative;
	overflow: hidden;
}
.txu-event-row:nth-child(1) { animation-delay: 0ms; }
.txu-event-row:nth-child(2) { animation-delay: 60ms; }
.txu-event-row:nth-child(3) { animation-delay: 120ms; }
.txu-event-row:nth-child(4) { animation-delay: 180ms; }
.txu-event-row:nth-child(5) { animation-delay: 240ms; }
.txu-event-row:nth-child(6) { animation-delay: 300ms; }
.txu-event-row:nth-child(n+7) { animation-delay: 360ms; }

@keyframes txuRevealUp { to { opacity: 1; transform: translateY(0); } }

/* Subtle gold accent slid in from the left on hover - editorial flourish */
.txu-event-row::before {
	content: '';
	position: absolute;
	top: 0; bottom: 0; left: 0;
	width: 3px;
	background: var(--txu-gold-500);
	transform: translateX(-3px);
	transition: transform 280ms var(--txu-ease-out);
}
.txu-event-row:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(10, 29, 59, 0.08), 0 1px 0 var(--txu-paper-dark);
	border-color: var(--txu-navy-700);
}
.txu-event-row:hover::before { transform: translateX(0); }
.txu-event-row:hover .txu-row-arrow {
	background: var(--txu-navy-900);
	color: #fff;
}
.txu-event-row:hover .txu-event-row-title a { color: var(--txu-gold-600); }

/* Date column (numeric font - Inter via the broad numeric override above) */
.txu-event-row-date {
	display: flex; flex-direction: column;
	align-items: flex-start;
	border-left: 2px solid var(--txu-gold-500);
	padding-left: 1rem;
}
.txu-event-row-date .txu-month {
	font-weight: 700; font-size: 0.6875rem;
	letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--txu-gold-600);
	margin-bottom: 0.25rem;
}
.txu-event-row-date .txu-day {
	font-weight: 800; font-size: 3rem; line-height: 1;
	letter-spacing: -0.04em;
	color: var(--txu-navy-900);
	font-variant-numeric: tabular-nums;
}
.txu-event-row-date .txu-weekday {
	font-weight: 500; font-size: 0.6875rem;
	letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--txu-ink-muted);
	margin-top: 0.375rem;
}

/* Editorial image thumbnail */
.txu-event-row-image {
	width: 96px; height: 96px;
	overflow: hidden;
	background: var(--txu-paper-dark);
	position: relative;
	border: 1px solid var(--txu-rule);
}
.txu-event-row-image img {
	width: 100%; height: 100%; object-fit: cover;
	filter: grayscale(0.15) contrast(0.96);
	transition: filter 400ms var(--txu-ease-out), transform 700ms var(--txu-ease-out);
}
.txu-event-row-image::after {
	content: '';
	position: absolute; top: 0; left: 0;
	width: 12px; height: 2px;
	background: var(--txu-gold-500);
	z-index: 2;
	transition: width 300ms var(--txu-ease-out);
}
.txu-event-row:hover .txu-event-row-image img {
	filter: grayscale(0) contrast(1);
	transform: scale(1.07);
}
.txu-event-row:hover .txu-event-row-image::after { width: 24px; }
.txu-event-row-image-empty { background: var(--txu-paper-dark); }

/* Content column */
.txu-event-row-content { max-width: 600px; }
.txu-event-row-kicker {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-weight: 700; font-size: 0.6875rem;
	letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--txu-gold-600);
	margin-bottom: 0.625rem;
}
.txu-event-row-kicker .txu-dot {
	width: 4px; height: 4px; border-radius: 50%;
	background: var(--txu-gold-500);
}
.txu-event-row-title {
	font-family: var(--txu-font-display); font-weight: 600;
	font-size: 1.75rem; line-height: 1.2;
	letter-spacing: -0.015em; margin: 0 0 0.5rem;
}
.txu-event-row-title a {
	color: var(--txu-navy-900);
	text-decoration: none;
	transition: color 250ms var(--txu-ease-out);
}
.txu-event-row-description {
	font-size: 0.9375rem; color: var(--txu-ink-soft);
	line-height: 1.55; margin: 0 0 0.875rem;
	display: -webkit-box; -webkit-line-clamp: 2;
	-webkit-box-orient: vertical; overflow: hidden;
}
.txu-event-row-meta {
	display: flex; flex-wrap: wrap; gap: 1.25rem;
	font-size: 0.8125rem; color: var(--txu-ink-muted);
}
.txu-meta-item { display: inline-flex; align-items: center; gap: 0.4375rem; }
.txu-meta-item svg {
	width: 14px; height: 14px;
	stroke: currentColor; stroke-width: 1.75; fill: none;
}
.txu-meta-item.txu-price {
	font-family: var(--txu-font-mono);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	color: var(--txu-navy-900);
}
.txu-meta-item.txu-price.free { color: var(--txu-success); }

/* Action column */
.txu-event-row-action {
	display: flex; flex-direction: column; align-items: flex-end;
	gap: 0.875rem;
}
.txu-row-arrow {
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1.5px solid var(--txu-navy-900);
	color: var(--txu-navy-900);
	background: transparent;
	transition: transform 280ms var(--txu-ease-out),
	            color 280ms var(--txu-ease-out),
	            background 280ms var(--txu-ease-out);
}
.txu-row-arrow svg {
	width: 16px; height: 16px;
	stroke: currentColor; stroke-width: 2; fill: none;
}
.txu-event-spots {
	font-family: var(--txu-font-mono);
	font-size: 0.6875rem;
	color: var(--txu-ink-muted);
	letter-spacing: 0.05em;
	font-variant-numeric: tabular-nums;
}
.txu-event-spots strong { color: var(--txu-navy-900); font-weight: 500; }

/* ============================================================
   GRID VIEW
   ============================================================ */

.txu-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2rem;
}

.txu-event-card {
	background: #fff;
	border: 1px solid var(--txu-rule);
	overflow: hidden;
	cursor: pointer;
	transition: transform 320ms var(--txu-ease-out),
	            box-shadow 320ms var(--txu-ease-out),
	            border-color 320ms var(--txu-ease-out);
	opacity: 0;
	transform: translateY(16px);
	animation: txuRevealUp 600ms var(--txu-ease-out) forwards;
}
.txu-events-grid .txu-event-card:nth-child(1) { animation-delay: 0ms; }
.txu-events-grid .txu-event-card:nth-child(2) { animation-delay: 80ms; }
.txu-events-grid .txu-event-card:nth-child(3) { animation-delay: 160ms; }
.txu-events-grid .txu-event-card:nth-child(4) { animation-delay: 240ms; }
.txu-events-grid .txu-event-card:nth-child(5) { animation-delay: 320ms; }
.txu-events-grid .txu-event-card:nth-child(6) { animation-delay: 400ms; }

.txu-event-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(10,29,59,0.10);
	border-color: var(--txu-navy-700);
}

.txu-event-card-media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--txu-paper-dark);
}
.txu-event-card-media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform 700ms var(--txu-ease-out);
}
.txu-event-card:hover .txu-event-card-media img { transform: scale(1.06); }

.txu-card-date-badge {
	position: absolute; top: 1rem; left: 1rem;
	background: var(--txu-paper);
	padding: 0.625rem 0.875rem;
	display: flex; flex-direction: column; align-items: center;
	border-left: 3px solid var(--txu-gold-500);
	box-shadow: 0 4px 12px rgba(10,29,59,0.12);
}
.txu-card-date-badge .txu-month {
	font-weight: 700; font-size: 0.625rem;
	letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--txu-gold-600);
}
.txu-card-date-badge .txu-day {
	font-weight: 800; font-size: 1.875rem; line-height: 1;
	color: var(--txu-navy-900);
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.txu-card-price-tag {
	position: absolute; top: 1rem; right: 1rem;
	font-family: var(--txu-font-mono);
	font-weight: 500; font-size: 0.75rem;
	padding: 0.375rem 0.625rem;
	background: var(--txu-navy-900); color: #fff;
	letter-spacing: 0.03em;
}
.txu-card-price-tag.free { background: var(--txu-success); }

.txu-event-card-body { padding: 1.5rem; }
.txu-event-card-kicker {
	font-weight: 700; font-size: 0.625rem;
	letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--txu-gold-600);
	margin-bottom: 0.625rem;
}
.txu-event-card-title {
	font-family: var(--txu-font-display); font-weight: 600;
	font-size: 1.375rem; line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--txu-navy-900);
	margin: 0 0 0.625rem;
	display: -webkit-box; -webkit-line-clamp: 2;
	-webkit-box-orient: vertical; overflow: hidden;
}
.txu-event-card-description {
	font-size: 0.875rem; color: var(--txu-ink-soft);
	line-height: 1.55; margin: 0 0 1rem;
	display: -webkit-box; -webkit-line-clamp: 2;
	-webkit-box-orient: vertical; overflow: hidden;
}
.txu-event-card-meta {
	display: flex; align-items: center; justify-content: space-between;
	padding-top: 1rem;
	border-top: 1px solid var(--txu-rule);
	font-size: 0.8125rem; color: var(--txu-ink-muted);
}
.txu-card-time {
	display: inline-flex; align-items: center; gap: 0.4375rem;
	font-variant-numeric: tabular-nums;
}
.txu-card-time svg {
	width: 14px; height: 14px;
	stroke: currentColor; stroke-width: 1.75; fill: none;
}
.txu-card-cta {
	font-weight: 600; font-size: 0.75rem;
	letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--txu-navy-900);
	display: inline-flex; align-items: center; gap: 0.375rem;
}
.txu-card-cta svg {
	width: 12px; height: 12px;
	stroke: currentColor; stroke-width: 2; fill: none;
	transition: transform 250ms var(--txu-ease-out);
}
.txu-event-card:hover .txu-card-cta svg { transform: translateX(3px); }

/* ============================================================
   CALENDAR VIEW
   ============================================================ */

.txu-calendar-view { background: #fff; border: 1px solid var(--txu-rule); }
.txu-calendar-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1.5rem 2rem;
	border-bottom: 1px solid var(--txu-rule);
}
.txu-calendar-month-label {
	font-family: var(--txu-font-display); font-weight: 600;
	font-size: 1.5rem; color: var(--txu-navy-900);
	letter-spacing: -0.01em;
}
.txu-calendar-nav { display: flex; gap: 0.5rem; align-items: center; }
.txu-calendar-nav-btn {
	min-width: 36px; height: 36px; padding: 0 0.75rem;
	display: grid; place-items: center;
	background: transparent;
	border: 1px solid var(--txu-rule);
	color: var(--txu-ink-soft);
	font-size: 0.8125rem;
	transition: all 200ms var(--txu-ease-out);
}
.txu-calendar-nav-btn:not(:disabled):hover {
	border-color: var(--txu-navy-700);
	color: var(--txu-navy-900);
}
.txu-calendar-nav-btn:disabled { opacity: 0.5; cursor: default; }
.txu-calendar-nav-btn svg {
	width: 16px; height: 16px;
	stroke: currentColor; stroke-width: 2; fill: none;
}

.txu-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}
.txu-calendar-weekday {
	padding: 1rem;
	text-align: center;
	font-weight: 600; font-size: 0.625rem;
	letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--txu-ink-muted);
	border-bottom: 1px solid var(--txu-rule);
	background: var(--txu-paper-dark);
}
.txu-calendar-day {
	position: relative;
	min-height: 100px;
	padding: 0.75rem;
	border-right: 1px solid var(--txu-rule);
	border-bottom: 1px solid var(--txu-rule);
	transition: background-color 200ms var(--txu-ease-out);
}
.txu-calendar-day:nth-child(7n) { border-right: none; }
.txu-calendar-day:hover { background: var(--txu-paper-dark); }
.txu-calendar-day.outside { background: var(--txu-paper-dark); }
.txu-calendar-day.outside .txu-day-num {
	color: var(--txu-ink-muted); opacity: 0.5;
}
.txu-calendar-day.today .txu-day-num {
	background: var(--txu-gold-500);
	color: var(--txu-navy-900);
	border-radius: 50%;
	width: 28px; height: 28px;
	display: inline-grid; place-items: center;
}
.txu-day-num {
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--txu-ink);
	font-variant-numeric: tabular-nums;
	display: inline-block;
	line-height: 1;
}
.txu-day-events {
	margin-top: 0.5rem;
	display: flex; flex-direction: column; gap: 3px;
}
.txu-day-event-chip {
	font-size: 0.6875rem; font-weight: 500;
	padding: 0.25rem 0.4375rem;
	background: var(--txu-navy-100);
	color: var(--txu-navy-900);
	border-left: 2px solid var(--txu-gold-500);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	text-decoration: none;
	transition: all 200ms var(--txu-ease-out);
}
.txu-day-event-chip:hover {
	background: var(--txu-navy-900); color: #fff;
}
.txu-day-event-chip.paid {
	background: var(--txu-gold-100);
	border-left-color: var(--txu-gold-600);
}
.txu-day-event-chip.paid:hover { background: var(--txu-gold-600); color: #fff; }

/* ============================================================
   Empty state
   ============================================================ */

.txu-empty-state {
	text-align: center;
	padding: 6rem 2rem;
}
.txu-empty-state .txu-kicker {
	font-weight: 700; font-size: 0.6875rem;
	letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--txu-gold-600);
	margin-bottom: 0.75rem;
}
.txu-empty-state h2 {
	font-family: var(--txu-font-display); font-weight: 600;
	font-size: 2rem; color: var(--txu-navy-900);
	margin: 0 0 1rem;
}
.txu-empty-state p { color: var(--txu-ink-soft); }

/* No-results state (search returned 0) - inherits empty-state styling */
.txu-no-results {
	text-align: center;
	padding: 4.5rem 2rem;
}
.txu-no-results .txu-kicker {
	font-weight: 700; font-size: 0.6875rem;
	letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--txu-gold-600);
	margin-bottom: 0.75rem;
}
.txu-no-results h2 {
	font-family: var(--txu-font-display); font-weight: 600;
	font-size: 1.625rem; color: var(--txu-navy-900);
	margin: 0 0 0.75rem;
}
.txu-no-results p { color: var(--txu-ink-soft); margin: 0; }
.txu-no-results[hidden] { display: none; }

/* When showing no-results, hide the view container too */
.txu-events.is-no-results .txu-view-container { display: none; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
	.txu-events { padding: 1rem 1.25rem 3rem; }
	.txu-filters-row {
		flex-direction: column;
		align-items: stretch;
		gap: 0.875rem;
	}
	.txu-event-row {
		grid-template-columns: auto 80px;
		grid-template-areas:
			"date image"
			"content content"
			"action action";
		gap: 1rem;
		padding: 1.25rem 1.25rem;
	}
	.txu-event-row-date {
		grid-area: date;
		flex-direction: row;
		align-items: center;
		gap: 0.75rem;
		border-left: none;
		border-bottom: 2px solid var(--txu-gold-500);
		padding-left: 0;
		padding-bottom: 0.5rem;
		align-self: start;
	}
	.txu-event-row-date .txu-day { font-size: 2rem; }
	.txu-event-row-image {
		grid-area: image;
		width: 80px; height: 80px;
		justify-self: end;
	}
	.txu-event-row-content { grid-area: content; }
	.txu-event-row-action {
		grid-area: action;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}
	.txu-event-row-title { font-size: 1.25rem; }
	.txu-calendar-day { min-height: 60px; padding: 0.375rem; }
	.txu-day-events { display: none; }
	.txu-calendar-day.has-events::after {
		content: '';
		position: absolute; bottom: 6px; left: 50%;
		transform: translateX(-50%);
		width: 5px; height: 5px;
		border-radius: 50%;
		background: var(--txu-gold-500);
	}
}

@media (prefers-reduced-motion: reduce) {
	.txu-event-row, .txu-event-card, .txu-view-pane {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ============================================================
   A11y polish: focus-visible across all interactive elements
   ============================================================ */

.txu-events button:focus-visible,
.txu-events a:focus-visible,
.txu-events input:focus-visible,
.txu-events select:focus-visible,
.txu-events [role="button"]:focus-visible {
	outline: 2px solid var(--txu-gold-500);
	outline-offset: 2px;
	border-radius: 2px;
}

.txu-events .txu-filter-chip:focus-visible {
	outline-offset: 3px;
}
.txu-events .txu-view-btn:focus-visible {
	outline-offset: -2px;
}
.txu-events .txu-row-arrow:focus-visible {
	outline-offset: 3px;
}
.txu-events .txu-event-row:focus-within {
	background-color: var(--txu-paper-hover);
}

/* Ensure hover-only interactions also work on keyboard focus */
.txu-events .txu-event-row:focus-within .txu-row-arrow {
	background: var(--txu-navy-900);
	color: #fff;
}
.txu-events .txu-event-row:focus-within .txu-event-row-title a {
	color: var(--txu-gold-600);
}

/* Skip-link style (themes may not have one) */
.txu-events-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 0.5rem 1rem;
	background: var(--txu-navy-900);
	color: #fff !important;
	text-decoration: none;
	font-weight: 600;
}
.txu-events-skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* ============================================================
   Mobile touch target improvements (a11y / WCAG 2.5.5)
   Aim: hit areas >=44px on touch devices
   ============================================================ */
@media (max-width: 900px) and (pointer: coarse) {
	.txu-events .txu-filter-chip {
		min-height: 40px;
		padding: 0.625rem 1.125rem;
	}
	.txu-events .txu-view-btn {
		width: 44px;
		height: 44px;
	}
	.txu-events .txu-view-btn svg {
		width: 20px;
		height: 20px;
	}
}

/* Prevent horizontal scroll on all viewports */
.txu-events,
.txu-detail,
.txu-register,
.txu-my-tickets,
.txu-confirmation {
	overflow-x: hidden;
}

/* Ensure long ticket codes / emails wrap on small screens */
.txu-confirm-ticket-code,
.txu-confirm-ticket-card .txu-attendee-label {
	overflow-wrap: anywhere;
}
