/**
 * Tentative ("Effective Event Date") styling.
 *
 * Kept separate from frontend.css because that stylesheet only loads on
 * singular pages that have tickets -- these rules also have to apply on
 * event archives and on events with no tickets at all.
 *
 * Colors fall back to the theme's TEC custom properties (see
 * wp-content/themes/gsod/style.css) so this stays in step with the site's
 * plum/saffron palette without duplicating it.
 */

.gsod-tec-effective-date-notice {
	color: var( --tec-color-text-primary, #334155 );
	background: var( --tec-color-background-primary, #faf8f5 );
	border-left: 3px solid var( --tec-color-accent-primary, #781d42 );
	padding: 0.75em 1em;
	border-radius: 4px;
	margin-bottom: 1em;
}

/**
 * Sits just inside the datetime wrapper, below the rendered date.
 *
 * An outlined pill in `currentColor` rather than a filled one: this marker
 * has to stay legible on wildly different backgrounds. The theme paints
 * month calendar tiles solid plum with white text
 * (themes/gsod/style.css `.tribe-events-calendar-month__calendar-event`),
 * while the month tooltip and the list/day views are white or cream.
 * Inheriting the surrounding text colour means it is always readable --
 * white-on-plum inside a tile, plum-on-white in the tooltip -- with no
 * per-view overrides, and no filled block that reads like highlighter pen.
 *
 * `display: block` + `width: fit-content` puts it on its own line while
 * still shrink-wrapping the text, so it never appears mid-sentence after a
 * wrapped date.
 *
 * Sizing is in rem, not em, so the pill stays the same size regardless of
 * which view it lands in -- month view's date text is far smaller than
 * list view's, and an em-based size would swing with it.
 */
.gsod-tec-effective-date-label {
	display: block;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0.25rem 0 0;
	padding: 0.05rem 0.45rem;
	color: inherit;
	background: none;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.02em;
	white-space: nowrap;
	text-transform: none;
	opacity: 0.8;
}

/* Sponsorship Details card (below the Event Details card). */
.gsod-tec-sponsorship-details {
	background: #fff;
	border: 1px solid var(--color-border, #e5e5e5);
	border-radius: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	margin-top: 30px;
	padding: 40px;
}
.gsod-tec-sponsorship-details > h3 {
	border-bottom: 1px solid var(--color-border, #e5e5e5);
	color: var(--color-plum, inherit);
	font-family: var(--font-headings, inherit);
	font-size: 1.4rem;
	margin: 0 0 25px;
	padding-bottom: 20px;
}
@media (max-width: 600px) {
	.gsod-tec-sponsorship-details {
		padding: 25px;
	}
}

/* Event Schedule card (below the Event Details card). */
.gsod-tec-event-schedule {
	background: #fff;
	border: 1px solid var(--color-border, #e5e5e5);
	border-radius: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	margin-top: 30px;
	padding: 40px;
}
.gsod-tec-event-schedule > h3 {
	border-bottom: 1px solid var(--color-border, #e5e5e5);
	color: var(--color-plum, inherit);
	font-family: var(--font-headings, inherit);
	font-size: 1.4rem;
	margin: 0 0 10px;
	padding-bottom: 20px;
}
.gsod-tec-event-schedule__table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	border: 0;
}
.gsod-tec-event-schedule__table th,
.gsod-tec-event-schedule__table td {
	padding: 14px 16px;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--color-border, #e5e5e5);
}
.gsod-tec-event-schedule__table thead th {
	background: var(--tec-color-background-primary, #faf8f5);
	color: var(--color-plum, inherit);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.gsod-tec-event-schedule__table tbody tr:last-child td {
	border-bottom: 0;
}
.gsod-tec-event-schedule__table tbody tr:hover td {
	background: var(--tec-color-background-primary, #faf8f5);
}
.gsod-tec-event-schedule__time {
	color: var(--color-plum, inherit);
	font-weight: 600;
	white-space: nowrap;
	width: 1%;
}
.gsod-tec-event-schedule__title {
	font-weight: 600;
}
.gsod-tec-event-schedule__desc {
	color: var(--color-text, #555);
	font-size: 0.95rem;
	line-height: 1.6;
}
@media (max-width: 600px) {
	.gsod-tec-event-schedule {
		padding: 25px;
	}
	.gsod-tec-event-schedule__table thead {
		display: none;
	}
	.gsod-tec-event-schedule__table tr,
	.gsod-tec-event-schedule__table td {
		display: block;
		width: auto;
	}
	.gsod-tec-event-schedule__table tbody tr {
		padding: 12px 0;
		border-bottom: 1px solid var(--color-border, #e5e5e5);
	}
	.gsod-tec-event-schedule__table tbody tr:last-child {
		border-bottom: 0;
	}
	.gsod-tec-event-schedule__table td {
		padding: 4px 0;
		border: 0;
	}
	.gsod-tec-event-schedule__table td::before {
		content: attr(data-label);
		display: block;
		font-size: 0.75rem;
		font-weight: 700;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		opacity: 0.6;
	}
	.gsod-tec-event-schedule__table tbody tr:hover td {
		background: none;
	}
}
