/* X-CD for WordPress — front end.
   Deliberately minimal and inheriting from the theme: colours and typography
   come from Elementor controls or the theme, not from here. */

.xcd-button {
	display: inline-block;
	padding: 0.6em 1.4em;
	border: 1px solid currentColor;
	border-radius: 3px;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
}

.xcd-button + .xcd-button {
	margin-left: 0.5em;
}

.xcd-button--primary {
	background: #0b5d8f;
	border-color: #0b5d8f;
	color: #fff;
}

.xcd-button--primary:hover,
.xcd-button--primary:focus {
	background: #094a72;
	border-color: #094a72;
	color: #fff;
}

.xcd-button--secondary {
	background: transparent;
}

/* Restricted content ---------------------------------------------------- */

.xcd-restricted {
	margin: 2em 0;
	padding: 2em;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	text-align: center;
}

.xcd-restricted__title {
	margin-top: 0;
}

.xcd-restricted__actions {
	margin-bottom: 0;
}

.xcd-member-content--locked {
	opacity: 0.95;
}

.xcd-error {
	padding: 0.75em 1em;
	border-left: 4px solid #b32d2e;
	background: rgba(179, 45, 46, 0.06);
}

/* Admin-only diagnostics on the front end -------------------------------- */

.xcd-notice--admin {
	padding: 0.75em 1em;
	border: 1px dashed #b32d2e;
	background: rgba(179, 45, 46, 0.05);
	font-size: 0.9em;
}

/* Events ----------------------------------------------------------------- */

.xcd-events {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.xcd-event {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	overflow: hidden;
}

.xcd-event__image img {
	display: block;
	width: 100%;
	height: auto;
}

.xcd-event__body {
	padding: 1.25rem;
}

.xcd-event__title {
	margin-top: 0;
}

.xcd-event__date,
.xcd-event__location {
	margin: 0.25em 0;
	opacity: 0.85;
}

/* Exhibitors ------------------------------------------------------------- */

.xcd-exhibitors {
	display: grid;
	gap: 1.5rem;
}

.xcd-exhibitor {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.xcd-exhibitor__header {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: baseline;
	justify-content: space-between;
}

.xcd-exhibitor__name {
	margin: 0;
}

.xcd-exhibitor__booth {
	margin: 0;
	font-weight: 600;
}

.xcd-exhibitor__body {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
	margin-top: 0.75rem;
}

.xcd-exhibitor__logo img {
	max-width: 160px;
	height: auto;
}

/* Group / committee rosters ---------------------------------------------- */

.xcd-group__members {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.xcd-group__member {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.xcd-group__photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.xcd-group__member-name {
	margin: 0;
	font-weight: 600;
}

.xcd-group__designation,
.xcd-group__company,
.xcd-group__location {
	margin: 0.1em 0;
	font-size: 0.9em;
	opacity: 0.85;
}

/* Embeds ------------------------------------------------------------------ */

.xcd-embed__frame {
	display: block;
	width: 100%;
	min-height: 400px;
	border: 0;
}

/* Elementor editor placeholders ------------------------------------------- */

.xcd-elementor-placeholder {
	padding: 1em;
	border: 1px dashed #9da5ae;
	border-radius: 3px;
	color: #6d7882;
	font-size: 0.9em;
	text-align: center;
}
