/*
 * PCCC Meeting Rooms / Events + On-Demand webinars landings.
 * Shares .pccc-platform-card look with research.css when both load.
 */

/* Slight visual tweak for the pathway grid on the webinars hub: taller
   cards, greener CTA to distinguish "join" pathways. */
.pccc-webinars .pccc-card--interactive .pccc-link--arrow {
	color: var(--pccc-color-accent-hover);
}

/* On-demand page: keep authored content inside the design system. */
.pccc-webinars--ondemand .pccc-content img {
	max-width: 100%;
	height: auto;
	display: block;
}

.pccc-webinars--ondemand .pccc-content h2 {
	margin-top: var(--pccc-space-6);
}

/* ------------------------------------------------------------------
   Meeting Room tiles. Visual metaphor of a table with chairs around
   it, Join button in the centre. Pure CSS; eight chair dots are
   positioned absolutely around a central oval table.
   ------------------------------------------------------------------ */

.pccc-room-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 960px) {
	.pccc-room-tiles {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 20px;
	}
}
.pccc-room-tiles__item { margin: 0; }

.pccc-room-tile {
	background: var(--pccc-color-surface, #ffffff);
	border: 1px solid var(--pccc-color-border, #e2e8f0);
	border-radius: 14px;
	padding: 18px 16px 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	height: 100%;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pccc-room-tile__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--pccc-color-ink, #0f172a);
	text-align: center;
}
.pccc-room-tile__host {
	margin: 0;
	font-size: 0.75rem;
	color: var(--pccc-color-ink-muted, #64748b);
	letter-spacing: 0.02em;
}

/* The scene is a square stage; the oval table sits in the middle and
   eight chairs sit around it. */
.pccc-room-tile__scene {
	position: relative;
	width: 100%;
	max-width: 180px;
	aspect-ratio: 1 / 1;
	margin: 2px auto 4px;
}

/* Oval table. Soft PCCIL teal surface. */
.pccc-room-tile__table {
	position: absolute;
	left: 20%;
	top: 32%;
	width: 60%;
	height: 36%;
	background: rgba(57, 138, 160, 0.14);
	border: 1px solid rgba(57, 138, 160, 0.35);
	border-radius: 999px;
	box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.65);
}

/* Chair dots. Every chair shares colour and shape; position per modifier. */
.pccc-room-tile__chair {
	position: absolute;
	width: 14px;
	height: 14px;
	background: var(--pccc-color-primary, #398AA0);
	border-radius: 50%;
	opacity: 0.78;
	transform: translate(-50%, -50%);
}
.pccc-room-tile__chair--n1 { left: 36%; top: 14%; }
.pccc-room-tile__chair--n2 { left: 64%; top: 14%; }
.pccc-room-tile__chair--nw { left: 14%; top: 38%; }
.pccc-room-tile__chair--ne { left: 86%; top: 38%; }
.pccc-room-tile__chair--sw { left: 14%; top: 62%; }
.pccc-room-tile__chair--se { left: 86%; top: 62%; }
.pccc-room-tile__chair--s1 { left: 36%; top: 86%; }
.pccc-room-tile__chair--s2 { left: 64%; top: 86%; }

/* Join button sits in the middle of the oval table. */
.pccc-room-tile__join {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 68px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--pccc-color-primary, #398AA0);
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
	transition: background 150ms ease, transform 150ms ease;
}
.pccc-room-tile__join:hover,
.pccc-room-tile__join:focus-visible {
	background: var(--pccc-color-primary-hover, #2f7a90);
	color: #ffffff;
	outline: none;
	transform: translate(-50%, -50%) scale(1.03);
}
.pccc-room-tile__join:focus-visible {
	box-shadow: 0 0 0 3px rgba(57, 138, 160, 0.35);
}

/* Narrow mobile: ensure the scene stays comfortably tappable. */
@media (max-width: 420px) {
	.pccc-room-tile__scene { max-width: 160px; }
	.pccc-room-tile__join { min-width: 60px; font-size: 0.8rem; padding: 7px 12px; }
}

/* ------------------------------------------------------------------
   Featured Past Events grid. The same ruleset lives in exhibition.css
   for landings that enqueue it. /events/ only loads webinars.css so
   the ruleset is mirrored here to guarantee a 3-up desktop layout
   with image-led cards.
   ------------------------------------------------------------------ */
.pccc-featured-events {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 641px) {
	.pccc-featured-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
	.pccc-featured-events { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pccc-featured-events__card {
	background: var(--pccc-color-surface, #ffffff);
	border: 1px solid var(--pccc-color-border, #e2e8f0);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.pccc-featured-events__card:hover,
.pccc-featured-events__card:focus-visible {
	transform: translateY(-2px);
	border-color: var(--pccc-color-primary, #398AA0);
	box-shadow: 0 12px 32px -14px rgba(57, 138, 160, 0.35);
	outline: none;
}
.pccc-featured-events__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--pccc-color-primary, #398AA0), var(--pccc-color-accent, #4FB3A6));
	overflow: hidden;
}
.pccc-featured-events__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	background: #E8F1F3; /* subtle PCCIL blue-grey behind contain letterbox */
	display: block;
}
.pccc-featured-events__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 auto;
}
.pccc-featured-events__body .pccc-card__eyebrow {
	color: var(--pccc-color-primary, #398AA0);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
	margin-bottom: 4px;
}
.pccc-featured-events__body .pccc-card__title {
	font-size: 1rem;
	line-height: 1.25;
	margin: 0;
	font-weight: 600;
}
.pccc-featured-events__body .pccc-card__body {
	color: var(--pccc-color-ink-muted, #64748b);
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.4;
	flex: 1 1 auto;
}
.pccc-featured-events__body .pccc-link--arrow {
	color: var(--pccc-color-primary, #398AA0);
	font-weight: 600;
	font-size: 0.85rem;
	margin-top: auto;
}
