/* =============================================================================
   Award Recipient List block
   ============================================================================= */

.award-recipient-list {
	container-type: inline-size;
}

/* ── Filter bar ──────────────────────────────────────────────────────────────── */

.arl-filters {
	display: none; /*display: flex;*/
	align-items: center;
	gap: var(--wp--preset--spacing--x-small, 0.75rem);
	margin-bottom: var(--wp--preset--spacing--small, 2rem);
	flex-wrap: wrap;
}

/* Shared button/select wrapper */
.arl-filter {
	position: relative;
}

/* Categories toggle button */
.arl-filter__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 01rem;
	background: #fff;
	border: 1px solid rgba( 0, 0, 0, .1 );
	border-radius: 0.75rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 0.15s;
}

.arl-filter__toggle:hover,
.arl-filter__toggle[aria-expanded="true"] {
	border-color: var(--wp--preset--color--primary, #0078FF);
}

.arl-filter__icon {
	flex-shrink: 0;
	opacity: 0.6;
}

.arl-filter__chevron {
	flex-shrink: 0;
	transition: transform 0.2s;
}

.arl-filter__toggle[aria-expanded="true"] .arl-filter__chevron {
	transform: rotate(180deg);
}

/* Dropdown panel */
.arl-filter__panel {
	position: absolute;
	top: calc(100% + 0.375rem);
	left: 0;
	z-index: 100;
	background: #fff;
	border: 1px solid rgba( 0, 0, 0, .1 );
	border-radius: 0.75rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	min-width: 220px;
}

.arl-filter__panel-inner {
	padding: 0.75rem;
}

.arl-filter__panel-heading {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
	margin: 0 0 0.5rem;
}

.arl-filter__option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.3rem 0;
	font-size: 0.9375rem;
	cursor: pointer;
	user-select: none;
}

.arl-filter__option input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	accent-color: var(--wp--preset--color--primary, #0078FF);
	cursor: pointer;
	flex-shrink: 0;
}

/* Year select wrapper */
.arl-filter--year {
	display: flex;
	align-items: center;
}

.arl-year-select {
	appearance: none;
	-webkit-appearance: none;
	padding: 0.75rem 2.25rem 0.75rem 1rem;
	background: #fff;
	border: 1px solid rgba( 0, 0, 0, .1 );
	border-radius: 0.75rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: inherit;
	cursor: pointer;
	transition: border-color 0.15s;
}

.arl-year-select:hover,
.arl-year-select:focus {
	border-color: var(--wp--preset--color--primary, #0078FF);
	outline: none;
}

.arl-year-select__chevron {
	position: absolute;
	right: 0.75rem;
	pointer-events: none;
	color: #6b7280;
}

/* ── Card grid ───────────────────────────────────────────────────────────────── */

.arl-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--x-small, 1.5rem);
}

@container (max-width: 600px) {
	.arl-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Card ────────────────────────────────────────────────────────────────────── */




.arl-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Badge row — sits above the image area */
.arl-card__badges {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem 0;
	flex-wrap: wrap;
	position: absolute;
	width: 100%;
}

.arl-card__award-badge {
	display: inline-block;
	background: var(--wp--preset--color--alert-background, #1a2540);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: calc(100% - 4rem);
}

.arl-card__year-badge {
	display: inline-block;
	background: #fff;
	border: 1.5px solid rgb(0 120 255);
	color: rgb(0 120 255);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.25rem 0.625rem;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* Image area — light blue tinted background */
.arl-card__image-area {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--superlight-accent, #EFF7FE);
	background-image: radial-gradient(rgb(239, 249, 253) 63%, rgb(193, 230, 247) 100%);
	padding: 2rem 1.5rem;
	min-height: 18rem;
}

.arl-card__image-area img {
	max-height: 9rem;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.arl-card[data-award=leader-of-the-year] .arl-card__image-area {
	padding: 0;
	width: 100%;
	height: 100%;
}

.arl-card[data-award=leader-of-the-year] .arl-card__image-area img {
	max-height: none;
	max-width: none;
	width: 100%;
	height: 18rem;
	object-fit: cover;
	display: block;
}

/* Card body */
.arl-card__body {
	padding: 1.25rem 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.arl-card__name {
	font-size: 1.375rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

.arl-card__description {
	font-size: 1rem;
	margin: 0;
	flex: 1;
}

.arl-card .read-more a:hover {
	color: var(--secondary-color);
}

.arl-card .read-more a:after {
	transition: transform 0.15s;
}

.arl-card .read-more a:hover:after {
	transform: rotate(-45deg) translate(.25rem, .25rem);
}

/* ── No results ──────────────────────────────────────────────────────────────── */

.arl-no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: var(--wp--preset--spacing--large, 3rem) 0;
	color: #6b7280;
}

/* ── Editor placeholder ───────────────────────────────────────────────────────── */

.award-recipient-list.is-placeholder,
.wp-block-momentive-award-recipient-list .momentive-block-placeholder {
	border: 2px dashed rgba( 0, 0, 0, .1 );
	border-radius: 0.5rem;
	padding: 2rem;
	text-align: center;
	background: #f9fafb;
	color: #6b7280;
}
