/* =============================================================================
   TAP Conference Schedule — public styles
   Self-contained: no dependency on any other TAP plugin's stylesheet.
   All selectors are prefixed with .tap-sched- to avoid theme collisions.
   ============================================================================= */

.tap-sched-wrap {
	box-sizing: border-box;
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 1rem;
	font-family: inherit;
	line-height: 1.5;
}

.tap-sched-wrap *,
.tap-sched-wrap *::before,
.tap-sched-wrap *::after {
	box-sizing: border-box;
}

.tap-sched-heading {
	font-size: 1.9rem;
	margin: 0 0 0.5rem;
}

.tap-sched-admin-notice {
	background: #fdf3dc;
	border: 1px solid #f0c060;
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 1.25rem;
	font-size: 13px;
	color: #7a5000;
}

.tap-sched-admin-notice code {
	background: rgba(0, 0, 0, 0.06);
	padding: 1px 5px;
	border-radius: 3px;
}

.tap-sched-empty {
	color: #666;
	padding: 1.5rem 0;
}

/* ---------------------------------------------------------------------------
   Back / archive links
   --------------------------------------------------------------------------- */

.tap-sched-back-link,
.tap-sched-archive-link a {
	display: inline-block;
	margin-bottom: 1rem;
	font-size: 0.9rem;
	text-decoration: none;
	color: #2c5aa0;
}

.tap-sched-back-link:hover,
.tap-sched-archive-link a:hover {
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Conference cards (upcoming list + archive)
   --------------------------------------------------------------------------- */

.tap-sched-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.tap-sched-card {
	position: relative;
	display: block;
	padding: 1.25rem;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.tap-sched-card:hover {
	border-color: #2c5aa0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.tap-sched-card__title {
	font-size: 1.15rem;
	margin: 0 0 0.35rem;
}

.tap-sched-card__date {
	font-size: 0.9rem;
	color: #555;
}

.tap-sched-card__place {
	font-size: 0.85rem;
	color: #777;
	margin-top: 0.15rem;
}

.tap-sched-card__theme {
	font-size: 0.88rem;
	color: #444;
	margin: 0.6rem 0 0;
}

.tap-sched-card__cta {
	display: inline-block;
	margin-top: 0.75rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #2c5aa0;
}

.tap-sched-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 2px 8px;
	border-radius: 999px;
	margin-bottom: 0.5rem;
}

.tap-sched-badge--past {
	background: #f1f1f1;
	color: #666;
}

.tap-sched-badge--member {
	background: #eaf0fb;
	color: #2c5aa0;
	margin-bottom: 0;
	margin-left: 0.4rem;
	vertical-align: middle;
}

/* ---------------------------------------------------------------------------
   Pricing (single conference)
   --------------------------------------------------------------------------- */

.tap-sched-pricing {
	margin: 1.75rem 0;
	padding: 1.25rem 1.5rem;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
}

.tap-sched-pricing__heading {
	font-size: 1.15rem;
	margin: 0 0 0.5rem;
}

.tap-sched-pricing__note {
	font-size: 0.85rem;
	color: #2c5aa0;
	margin: 0 0 1rem;
}

.tap-sched-pricing__list {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.tap-sched-pricing__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.tap-sched-pricing__item:last-child {
	border-bottom: none;
}

.tap-sched-pricing__item-name {
	font-weight: 600;
}

.tap-sched-pricing__item-price {
	flex: 0 0 auto;
	white-space: nowrap;
	font-weight: 600;
	text-align: right;
}

.tap-sched-pricing__price-row {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 0.4rem;
}

.tap-sched-pricing__price-label {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #2c5aa0;
}

.tap-sched-pricing__strike {
	color: #999;
	font-weight: 400;
	text-decoration: line-through;
}

.tap-sched-pricing__strike .tap-sched-pricing__price-label {
	color: #999;
}

/* ---------------------------------------------------------------------------
   Pagination (archive)
   --------------------------------------------------------------------------- */

.tap-sched-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin: 1.5rem 0;
	font-size: 0.9rem;
}

.tap-sched-page-btn {
	color: #2c5aa0;
	text-decoration: none;
}

.tap-sched-page-btn:hover {
	text-decoration: underline;
}

.tap-sched-page-info {
	color: #777;
}

/* ---------------------------------------------------------------------------
   Single conference page
   --------------------------------------------------------------------------- */

.tap-sched-conference__top {
	margin-bottom: 1.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #e2e2e2;
}

/* Clearfix — .tap-sched-conference__header flows normally after the
   floated map, but .tap-sched-conference__top itself still needs to
   contain the float's height or the border-bottom above would sit right
   under the title instead of below the map. */
.tap-sched-conference__top::after {
	content: '';
	display: table;
	clear: both;
}

.tap-sched-conference__map {
	float: right;
	width: 42%;
	max-width: 380px;
	margin: 0 0 1rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* The parent theme has a blanket "h1, h2, ... { clear: both }" typographic
   rule (keeps headings from ever sitting beside a floated image) — without
   this override it also clears our conference title below the floated map,
   which then drags the rest of the header down with it. */
.tap-sched-conference__header .tap-sched-heading {
	clear: none;
}

.tap-sched-conference__map iframe {
	width: 100%;
	height: 220px;
	border: 0;
	border-radius: 8px;
	display: block;
}

.tap-sched-conference__map-link {
	align-self: flex-start;
	font-size: 0.85rem;
	color: #2c5aa0;
	text-decoration: none;
}

.tap-sched-conference__map-link:hover {
	text-decoration: underline;
}

@media (max-width: 640px) {
	/* The map comes first in source order (needed so desktop text wraps
	   around the float from the top) — on mobile there's no float, so
	   without explicit ordering it would render first too. Flex + order
	   puts the conference details first and the map after, regardless of
	   source order. */
	.tap-sched-conference__top {
		display: flex;
		flex-direction: column;
	}
	.tap-sched-conference__header {
		order: 1;
	}
	.tap-sched-conference__map {
		order: 2;
		float: none;
		width: 100%;
		max-width: none;
		margin: 1.25rem 0 0;
	}
}

.tap-sched-conference__meta {
	font-size: 0.95rem;
	color: #555;
	margin: 0.35rem 0;
}

.tap-sched-conference__theme {
	color: #444;
	margin: 0.5rem 0 0;
}

.tap-sched-btn-primary {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.6rem 1.2rem;
	background: #2c5aa0;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
}

.tap-sched-btn-primary:hover {
	background: #234880;
	color: #fff;
}

.tap-sched-timeblock {
	margin-bottom: 1.75rem;
}

.tap-sched-timeblock__label {
	font-size: 1.05rem;
	color: #2c5aa0;
	border-bottom: 1px solid #eee;
	padding-bottom: 0.4rem;
	margin: 0 0 0.75rem;
}

.tap-sched-sessions {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.tap-sched-session-item {
	display: grid;
	grid-template-columns: 140px 1fr;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	padding: 0.75rem 1rem;
	border: 1px solid #ececec;
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
}

.tap-sched-session-item:hover {
	border-color: #2c5aa0;
	background: #f7f9fc;
}

.tap-sched-session-item__time {
	font-size: 0.82rem;
	color: #777;
}

.tap-sched-session-item__room {
	display: block;
	color: #999;
}

.tap-sched-session-item__title {
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Single session page
   --------------------------------------------------------------------------- */

.tap-sched-session__card {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 1.5rem;
}

.tap-sched-session__meta {
	font-size: 0.9rem;
	color: #666;
	margin: 0.35rem 0 1.25rem;
}

.tap-sched-session__description {
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}

.tap-sched-presenters {
	margin-top: 0.5rem;
}

.tap-sched-presenters__heading {
	font-size: 1.05rem;
	margin: 0 0 1rem;
}

.tap-sched-presenter {
	margin-bottom: 1rem;
}

.tap-sched-presenter__name {
	font-weight: 600;
}

.tap-sched-presenter__affiliation {
	font-size: 0.88rem;
	color: #666;
}

.tap-sched-presenter__bio {
	font-size: 0.92rem;
	color: #444;
	margin-top: 0.35rem;
}

/* ---------------------------------------------------------------------------
   Session details (supplementary fields — only rendered when populated)
   --------------------------------------------------------------------------- */

.tap-sched-session-details {
	border-top: 1px solid #eee;
	padding-top: 1.25rem;
	margin-top: 1.5rem;
}

.tap-sched-session-details__heading {
	font-size: 1.05rem;
	margin: 0 0 1rem;
}

.tap-sched-session-details__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0.9rem 1.5rem;
}

.tap-sched-detail-row {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.tap-sched-detail-row__label {
	font-size: 0.9rem;
	font-weight: 700;
	color: #333;
}

.tap-sched-detail-row__value {
	font-size: 0.92rem;
	color: #333;
	word-break: break-word;
}

.tap-sched-detail-row__value a {
	color: #2c5aa0;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */

@media (max-width: 480px) {
	.tap-sched-cards {
		grid-template-columns: 1fr;
	}
	.tap-sched-session-item {
		grid-template-columns: 1fr;
		align-items: flex-start;
	}
}
