/**
 * IAOM Exhibitor List
 *
 * Deliberately declares no font-family and no text colour: everything
 * inherits from the theme. Sizes are in em so the list scales with the
 * theme's base font size. The only colour introduced is the sponsor accent.
 */

.iaom-exl {
	--iaom-accent: #c08a2e;
	--iaom-rule: currentColor;
	--iaom-line: rgba(128, 128, 128, 0.32);
	--iaom-soft: rgba(128, 128, 128, 0.08);
	--iaom-chip: rgba(128, 128, 128, 0.14);
	--iaom-muted: rgba(128, 128, 128, 1);
	--iaom-sponsor-row: rgba(192, 138, 46, 0.06);
	--iaom-sponsor-chip: rgba(192, 138, 46, 0.16);
	font-size: 1.06em;
	line-height: 1.5;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
	.iaom-exl {
		--iaom-line: color-mix(in srgb, currentColor 22%, transparent);
		--iaom-soft: color-mix(in srgb, currentColor 6%, transparent);
		--iaom-chip: color-mix(in srgb, currentColor 10%, transparent);
		--iaom-muted: color-mix(in srgb, currentColor 65%, transparent);
		--iaom-sponsor-row: color-mix(in srgb, var(--iaom-accent) 7%, transparent);
		--iaom-sponsor-chip: color-mix(in srgb, var(--iaom-accent) 18%, transparent);
	}
}

.iaom-exl,
.iaom-exl *,
.iaom-exl *::before,
.iaom-exl *::after {
	box-sizing: border-box;
}

/* ---------- header ---------- */

.iaom-exl .iaom-exl__eyebrow {
	margin: 0 0 0.6em;
	font-size: 0.95em;
	line-height: 1.5;
	color: var(--iaom-muted);
}

.iaom-exl .iaom-exl__title {
	margin: 0 0 0.4em;
	font-size: 2.2em;
	line-height: 1.12;
	font-weight: 700;
}

.iaom-exl .iaom-exl__lede {
	margin: 0;
	max-width: 58ch;
	font-size: 1.35em;
	line-height: 1.55;
}

/* ---------- toolbar ---------- */

.iaom-exl__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6em;
	margin: 1.8em 0 0;
}

.iaom-exl__search {
	position: relative;
	flex: 1 1 17em;
	min-width: 0;
}

.iaom-exl__search svg {
	position: absolute;
	left: 0.9em;
	top: 50%;
	transform: translateY(-50%);
	color: var(--iaom-muted);
	pointer-events: none;
}

.iaom-exl__q {
	width: 100%;
	margin: 0;
	font: inherit;
	color: inherit;
	background: transparent;
	border: 1px solid var(--iaom-line);
	border-radius: 0.35em;
	padding: 0.75em 0.9em 0.75em 2.6em;
	line-height: 1.4;
}

.iaom-exl__q:focus {
	outline: 2px solid var(--iaom-rule);
	outline-offset: -1px;
}

.iaom-exl__chips {
	display: flex;
	gap: 0.3em;
	flex-wrap: wrap;
}

.iaom-exl__chip {
	font: inherit;
	font-size: 1em;
	line-height: 1.3;
	color: var(--iaom-muted);
	background: transparent;
	border: 1px solid var(--iaom-line);
	border-radius: 0.35em;
	padding: 0.7em 1em;
	cursor: pointer;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: normal;
}

.iaom-exl__chip:hover {
	background: var(--iaom-soft);
}

.iaom-exl__chip[aria-pressed="true"] {
	color: inherit;
	font-weight: 600;
	border-color: currentColor;
	background: var(--iaom-chip);
}

.iaom-exl__country {
	font: inherit;
	font-size: 1em;
	color: inherit;
	background: transparent;
	border: 1px solid var(--iaom-line);
	border-radius: 0.35em;
	padding: 0.68em 0.8em;
	max-width: 100%;
	cursor: pointer;
}

.iaom-exl .iaom-exl__count {
	margin: 1.2em 0 0;
	font-size: 1em;
	color: var(--iaom-muted);
	font-variant-numeric: tabular-nums;
	min-height: 1.4em;
}

.iaom-exl--nojs .iaom-exl__bar,
.iaom-exl--nojs .iaom-exl__count {
	display: none;
}

/* ---------- sections ---------- */

.iaom-exl .iaom-exl__sech {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.4em 0.9em;
	margin: 2.6em 0 0.9em;
}

.iaom-exl .iaom-exl__secname {
	margin: 0;
	font-size: 1.7em;
	line-height: 1.18;
	font-weight: 700;
}

.iaom-exl .iaom-exl__seccount {
	margin: 0;
	font-size: 1.25em;
	font-weight: 600;
	color: var(--iaom-muted);
	font-variant-numeric: tabular-nums;
}

.iaom-exl .iaom-exl__blurb {
	margin: 0;
	flex: 1 1 18ch;
	font-size: 1em;
	line-height: 1.5;
	color: var(--iaom-muted);
}

.iaom-exl__sec.is-sponsor .iaom-exl__secname {
	color: var(--iaom-accent);
}

/* ---------- table ---------- */

.iaom-exl__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: none;
	font-size: 1.05em;
	table-layout: auto;
}

.iaom-exl__table th,
.iaom-exl__table td {
	background: none;
	text-align: left;
	vertical-align: middle;
}

.iaom-exl__table th {
	padding: 0.75em 0.7em;
	font-size: 0.98em;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.3;
	white-space: nowrap;
	border: 0;
	border-bottom: 2px solid var(--iaom-rule);
	cursor: pointer;
	user-select: none;
}

.iaom-exl__table th.iaom-exl__thno {
	cursor: default;
	width: 4.4em;
}

.iaom-exl__ind::after {
	content: "\2195";
	margin-left: 0.5em;
	opacity: 0.35;
	font-size: 0.9em;
}

.iaom-exl__table th[aria-sort="ascending"] .iaom-exl__ind::after {
	content: "\25B2";
	opacity: 0.9;
}

.iaom-exl__table th[aria-sort="descending"] .iaom-exl__ind::after {
	content: "\25BC";
	opacity: 0.9;
}

.iaom-exl__table td {
	padding: 0.9em 0.7em;
	border: 0;
	border-bottom: 1px solid var(--iaom-line);
	line-height: 1.4;
}

.iaom-exl__table tbody tr:hover td {
	background: var(--iaom-soft);
}

.iaom-exl__no {
	width: 4.4em;
	font-size: 1.15em;
	font-weight: 600;
	color: var(--iaom-muted);
	font-variant-numeric: tabular-nums;
}

.iaom-exl__co {
	font-size: 1.04em;
	font-weight: 600;
}

.iaom-exl__ctry {
	white-space: nowrap;
}

.iaom-exl__flag {
	display: inline-block;
	width: 26px;
	height: 18px;
	margin: 0 0.55em 0 0;
	vertical-align: -2px;
	border-radius: 2px;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.iaom-exl__bo b {
	display: inline-block;
	margin: 0.14em 0.32em 0.14em 0;
	padding: 0.36em 0.72em;
	font-size: 1.02em;
	font-weight: 700;
	line-height: 1.3;
	border-radius: 0.3em;
	background: var(--iaom-chip);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* ---------- sponsors ---------- */

.iaom-exl__sec.is-sponsor .iaom-exl__table th {
	border-bottom-color: var(--iaom-accent);
	color: var(--iaom-accent);
}

.iaom-exl__sec.is-sponsor .iaom-exl__table tbody td {
	background: var(--iaom-sponsor-row);
}

.iaom-exl__sec.is-sponsor .iaom-exl__table tbody tr:hover td {
	background: var(--iaom-sponsor-chip);
}

.iaom-exl__sec.is-sponsor .iaom-exl__no {
	box-shadow: inset 3px 0 0 var(--iaom-accent);
}

.iaom-exl__sec.is-sponsor .iaom-exl__bo b {
	background: var(--iaom-sponsor-chip);
}

/* ---------- states ---------- */

.iaom-exl__empty {
	margin: 2.4em 0;
	padding: 2em 1em;
	text-align: center;
	color: var(--iaom-muted);
	border: 1px dashed var(--iaom-line);
	border-radius: 0.5em;
}

.iaom-exl .iaom-exl__note {
	margin: 2.4em 0 0;
	padding-top: 1.4em;
	border-top: 1px solid var(--iaom-line);
	font-size: 0.85em;
	color: var(--iaom-muted);
}

/* ---------- small screens ---------- */

@media (max-width: 760px) {
	.iaom-exl__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.iaom-exl__table,
	.iaom-exl__table tbody,
	.iaom-exl__table tr,
	.iaom-exl__table td {
		display: block;
		width: auto;
	}

	.iaom-exl__table tr {
		margin: 0 0 0.6em;
		padding: 0.9em 1em;
		border: 1px solid var(--iaom-line);
		border-left: 3px solid var(--iaom-line);
		border-radius: 0.45em;
	}

	.iaom-exl__sec.is-sponsor .iaom-exl__table tr {
		border-left-color: var(--iaom-accent);
		background: var(--iaom-sponsor-row);
	}

	.iaom-exl__table td {
		padding: 0.15em 0;
		border: 0;
	}

	.iaom-exl__table tbody tr:hover td,
	.iaom-exl__sec.is-sponsor .iaom-exl__table tbody td {
		background: none;
	}

	.iaom-exl__no {
		display: none;
	}

	.iaom-exl__co {
		font-size: 1.16em;
		padding-bottom: 0.4em;
	}

	.iaom-exl__bo {
		padding-top: 0.3em;
	}

	.iaom-exl__bo::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 0.3em;
		font-size: 0.9em;
		color: var(--iaom-muted);
	}

	.iaom-exl .iaom-exl__title {
		font-size: 1.8em;
	}

	.iaom-exl .iaom-exl__secname {
		font-size: 1.45em;
	}

	.iaom-exl .iaom-exl__lede {
		font-size: 1.15em;
	}

	.iaom-exl__chips {
		width: 100%;
	}

	.iaom-exl__chip {
		flex: 1 1 auto;
		text-align: center;
	}

	.iaom-exl__country {
		width: 100%;
	}
}

/* ---------- print ---------- */

@media print {
	.iaom-exl__bar,
	.iaom-exl__count,
	.iaom-exl__empty {
		display: none !important;
	}

	.iaom-exl__table tr {
		break-inside: avoid;
	}
}

@media (prefers-reduced-motion: reduce) {
	.iaom-exl * {
		transition: none !important;
	}
}
