/* PBP Foundation workshops — overview cards + single-workshop detail. */

/* Time-zone / 12-24h control bar */
.pbp-wk-tzbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0 0 1.25em;
	font-size: 0.85rem;
	color: #555;
}
.pbp-wk-tzbar__field {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.pbp-wk-tzbar select {
	font-size: 0.85rem;
	padding: 4px 8px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	max-width: 15rem;
}
.pbp-wk-sep { color: #bbb; }

/* Each workshop session on its own line; place beneath. */
.pbp-wk-time { display: block; }
.pbp-wk-place { display: block; color: #777; }

/* Only expose the accessible-hidden label to screen readers. */
.pbp-wk-tzbar .screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.pbp-wk-grid {
	display: grid;
	/* Centre the cards so a short list (e.g. just two) sits balanced in the
	   page instead of hugging the left edge. auto-fit collapses empty tracks;
	   the 360px cap keeps cards a sensible width; min(280px,100%) avoids
	   overflow on very narrow screens. */
	grid-template-columns: repeat( auto-fit, minmax( min( 280px, 100% ), 360px ) );
	justify-content: center;
	gap: 20px;
	margin: 1.5em 0;
}

.pbp-wk-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	padding: 20px;
	background: #fff;
}

.pbp-wk-card__visual {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 8px;
	margin: 0 0 14px;
	background: #f3f3f3;
}

.pbp-wk-card__title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.3;
}

.pbp-wk-card__meta {
	color: #555;
	font-size: 0.9rem;
	margin: 0 0 4px;
}

.pbp-wk-card__provider {
	color: #777;
	font-size: 0.85rem;
	margin: 0 0 12px;
}

.pbp-wk-card__excerpt {
	color: #444;
	font-size: 0.92rem;
	margin: 0 0 16px;
	flex: 1;
}

.pbp-wk-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.pbp-wk-btn {
	display: inline-block;
	background: #C00000;
	color: #fff !important;
	text-decoration: none;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 8px;
	line-height: 1.2;
}

.pbp-wk-btn:hover { opacity: 0.9; }

.pbp-wk-link {
	color: #C00000 !important;
	text-decoration: none;
	font-weight: 600;
}

.pbp-wk-link:hover { text-decoration: underline; }

.pbp-wk-empty {
	color: #777;
	font-style: italic;
}

/* Single workshop detail */
.pbp-wk-detail { max-width: 760px; margin: 0 auto; }
.pbp-wk-detail__back { display: inline-block; margin-bottom: 16px; }
.pbp-wk-detail__visual {
	display: block;
	width: 100%;
	max-height: 340px;
	object-fit: cover;
	border-radius: 12px;
	margin: 0 0 1.5em; /* a natural line-and-a-half below the image */
	background: #f3f3f3;
}
.pbp-wk-detail__title { margin: 0 0 0.4em; line-height: 1.2; }
.pbp-wk-detail__when { margin: 0 0 1em; }
.pbp-wk-detail__when .pbp-wk-time { font-weight: 600; }
.pbp-wk-detail__when .pbp-wk-place { font-weight: 400; margin-top: 2px; }
.pbp-wk-detail__meta { color: #555; margin: 0 0 6px; }
.pbp-wk-detail__label { color: #888; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pbp-wk-detail__body { margin: 20px 0; line-height: 1.6; }
.pbp-wk-detail__holders { margin: 16px 0; }
.pbp-wk-detail__holders li { margin-bottom: 4px; }

/* Registration embedded in the detail page */
.pbp-wk-detail__register {
	margin: 28px 0 0;
	padding-top: 20px;
	border-top: 1px solid #ececec;
	scroll-margin-top: 90px;
}
.pbp-wk-detail__register-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 12px; }
.pbp-embed { width: 100%; }
.pbp-embed__frame { display: block; width: 100%; border: 0; }
