/**
 * Learn Arts Award — styles for the shortcodes in learn-arts-award-apply.php:
 *   [learn_arts_award_apply]      -> .laaw-al-*        (awards grid + filters)
 *   [learn_arts_award_dropdown]   -> .laaw-dropdown, .laaw-info__select-wrap, .laaw-info__closes, .laaw-no-opening, .laaw-cats-empty
 *   [learn_arts_award_info]       -> .laaw-info*
 *   [learn_arts_award_categories] -> .laaw-cats, .laaw-info__cat-*
 *
 * Previously these rules were inlined in a <style> block on every render of
 * each shortcode; they are now enqueued once via wp_enqueue_style().
 *
 * Note: the [learn_arts_award_apply] "columns" attribute still sets
 * grid-template-columns inline on .laaw-al-grid per-instance, since that
 * value is dynamic (the columns="" shortcode attribute).
 */

/* =========================================================================
 * [learn_arts_award_apply] — awards grid + filters
 * ====================================================================== */

.laaw-al-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	background: #f7efec;
	border: 1px solid #f0ddd3;
	border-radius: 14px;
	padding: 12px;
	margin: 0 0 24px;
}

.laaw-al-filter-search,
.laaw-al-filter-pill {
	background: #fff;
	border: 1px solid #e7dcd4;
	border-radius: 10px;
}

.laaw-al-filter-search {
	flex: 1.6 1 0;
	display: flex;
	align-items: center;
	padding: 0 16px;
	min-width: 180px;
}

.laaw-al-filter-search input {
	width: 100%;
	border: none;
	outline: none;
	background: transparent;
	font-size: 14px;
	color: #111827;
	padding: 12px 0;
}

.laaw-al-filter-pill {
	flex: 1 1 0;
	min-width: 160px;
	padding: 0 16px;
	display: flex;
	align-items: center;
}

.laaw-al-filter-pill select {
	width: 100%;
	border: none;
	background: transparent;
	font-size: 14px;
	color: #111827;
	padding: 12px 0;
	cursor: pointer;
}

.laaw-al-filter-pill select:focus,
.laaw-al-filter-search input:focus {
	outline: none;
}

.laaw-al-topbar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 4px;
}

.laaw-al-reset-link {
	font-size: 12px;
	color: #b23b3b;
	text-decoration: none;
}

.laaw-al-reset-link:hover {
	text-decoration: underline;
}

.laaw-al-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 28px;
	margin: 0;
	align-items: stretch;
}

@media (max-width: 900px) {
	.laaw-al-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.laaw-al-grid {
		grid-template-columns: 1fr;
	}

	.laaw-al-filters {
		flex-direction: column;
	}
}

.laaw-al-card {
	display: grid;
	grid-template-columns: 140px 1fr;
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"media header"
		"body body";
	background: #f4f4f4;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	overflow: hidden;
}

@media (max-width: 480px) {
	.laaw-al-card {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto 1fr;
		grid-template-areas:
			"media"
			"header"
			"body";
	}
}

.laaw-al-media {
	grid-area: media;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 16px 0 0;
}

.laaw-al-media-circle {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #eee;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex: 0 0 auto;
}

.laaw-al-banner {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.laaw-al-placeholder {
	width: 44px;
	height: 44px;
	color: #cfcfcf;
}

.laaw-al-header {
	grid-area: header;
	padding: 16px 18px 8px;
	min-width: 0;
}

.laaw-al-body {
	grid-area: body;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 10px 18px 18px;
	min-width: 0;
}

.laaw-list-wrap,
.laaw-al-grid {
	margin-left: 30px !important;
	margin-right: 30px !important;
}

.laaw-filters,
.laaw-al-filters {
	width: auto !important;
	margin-left: 30px !important;
	margin-right: 30px !important;
}

.laaw-al-year {
	font-size: 11px;
	font-weight: 500;
	color: #555;
	visibility: hidden;
	margin: 0 0 4px;
}

.laaw-al-title {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #bc4b20 !important;
}

.laaw-al-desc {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.75;
	color: #777;
	text-align: justify;
}

.laaw-al-meta {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
}

.laaw-al-meta li {
	margin: 0 0 2px;
}

.laaw-al-meta strong {
	color: #111;
	font-weight: 700;
}

.laaw-al-actions {
	margin-top: auto;
	align-self: center;
}

.laaw-al-btn {
	display: inline-block;
	background: #bc4b20;
	color: #fff !important;
	border: none;
	border-radius: 4px;
	padding: 10px 22px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease;
}

.laaw-al-btn:hover {
	background: #bc4b20;
}

.laaw-al-btn--disabled,
.laaw-al-btn--disabled:hover {
	background: #b9b9b9;
	cursor: not-allowed;
	pointer-events: none;
}

.laaw-al-empty {
	padding: 24px;
	text-align: center;
	color: #666;
	grid-column: 1 / -1;
}

.laaw-al-loadmore-wrap {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.laaw-al-loadmore-btn {
	background: #fff;
	border: 1.5px solid #bc4b20;
	color: #bc4b20;
	border-radius: 6px;
	padding: 11px 28px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.laaw-al-loadmore-btn:hover {
	background: #bc4b20;
	color: #fff;
}

.laaw-al-loadmore-btn:disabled {
	opacity: .6;
	cursor: default;
}

/* =========================================================================
 * [learn_arts_award_dropdown]
 * ====================================================================== */

.laaw-dropdown {
	padding: 0 24px;
	margin: 0 0 20px;
}

.laaw-info__select-wrap {
	margin: 0;
}

.laaw-info__select {
	width: 100%;
	max-width: 420px;
	padding: 12px 14px;
	font-size: 16px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	background: #fff;
	color: #262220;
	cursor: pointer;
}

.laaw-info__closes {
	display: inline-block;
	margin: 10px 0 0;
	padding: 8px 14px;
	font-size: 16px;
	font-weight: 700;
	color: #b23b3b;
}

.laaw-no-opening {
	color: #b23b3b;
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 600;
}

.laaw-no-opening a {
	color: #b23b3b;
	text-decoration: underline;
	font-weight: 700;
}

.laaw-cats-empty {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #000;
}

/* =========================================================================
 * [learn_arts_award_info]
 * ====================================================================== */

.laaw-info {
	padding: 20px 24px;
	margin: 0 0 20px;
}

.laaw-info__title {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.25;
	color: #262220;
}

.laaw-info__desc {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.65;
	color: #555;
	white-space: pre-line;
}

.laaw-info__date {
	margin: 0;
	font-size: 16px;
	color: #262220;
}

.laaw-info__date strong {
	font-weight: 700;
}

.laaw-info__video-wrap {
	position: relative;
	width: 100%;
	max-width: 500px;
	aspect-ratio: 16 / 9;
	margin: 10px 0 16px;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
}

.laaw-info__video-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* =========================================================================
 * [learn_arts_award_categories]
 * ====================================================================== */

.laaw-cats {
	padding: 0 24px;
	margin: 0 0 20px;
}

.laaw-info__cat-heading {
	display: flex;
	align-items: center;
	margin: 20px 0 14px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #262220;
}

.laaw-info__cat-heading::before,
.laaw-info__cat-heading::after {
	content: '';
	flex: 1 1 auto;
	border-top: 2px solid #262220;
	margin: 0 12px;
}

.laaw-info__cat-row {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.6;
	color: #555;
}

.laaw-info__cat-row strong {
	color: #262220;
	font-weight: 700;
}
