/* Project filtering: visible, labeled controls on phones and tablets. */
body.lge-v2 .lge-projects .lge-mobile-type,
body.lge-v2 .lge-projects .lge-filter-reset { display: none; }
.lge-results-summary { display: contents; }

@media (max-width: 1024px) {
	body.lge-v2 .lge-projects .lge-controls {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
	}
	body.lge-v2 .lge-projects .lge-search {
		order: 0;
		width: 100%;
		min-width: 0;
		max-width: none;
	}
	body.lge-v2 .lge-projects .lge-search-input {
		width: 100%;
		min-height: 44px;
		font-size: 16px;
	}
	body.lge-v2 .lge-projects .lge-filterset {
		order: 1;
		width: 100%;
		min-width: 0;
		display: flex;
		flex-direction: column;
		gap: 16px;
	}
	body.lge-v2 .lge-projects .lge-filter-row--type { display: none; }
	body.lge-v2 .lge-projects .lge-mobile-type { display: block; }
	body.lge-v2 .lge-projects .lge-mobile-type label,
	body.lge-v2 .lge-projects .lge-filter-legend {
		display: block;
		margin: 0 0 8px;
		font-family: var(--lge-font-body);
		font-size: 12px;
		font-weight: 700;
		line-height: 1.5;
		letter-spacing: .08em;
		text-transform: uppercase;
		color: var(--lge-cool-black);
	}
	body.lge-v2 .lge-projects #lge-project-type {
		appearance: auto;
		-webkit-appearance: menulist;
		display: block;
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-height: 48px;
		height: auto;
		margin: 0;
		padding: 12px 14px;
		border: 1px solid rgba(7,26,36,.35);
		border-radius: 0;
		background: var(--lge-white);
		color: var(--lge-cool-black);
		font-family: var(--lge-font-body);
		font-size: 16px;
		font-weight: 400;
		line-height: 1.4;
		letter-spacing: 0;
		text-transform: none;
	}
	body.lge-v2 .lge-projects .lge-filter-row--state { display: block; width: 100%; }
	body.lge-v2 .lge-projects .lge-filter-row--state .lge-filters {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 4px;
		width: 100%;
		overflow: visible;
	}
	body.lge-v2 .lge-projects .lge-filter-row--state .lge-filter {
		min-width: 0;
		min-height: 44px;
		padding: 8px 4px;
		font-size: 14px;
		line-height: 1.4;
		letter-spacing: 0;
		text-transform: none;
		text-align: center;
		color: var(--lge-cool-black);
	}
	body.lge-v2 .lge-projects .lge-filter-row--state .lge-filter.is-active {
		background: var(--lge-white);
	}
	body.lge-v2 .lge-projects .lge-results-summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		margin: 18px 0 24px;
	}
	body.lge-v2 .lge-projects .lge-results-summary .lge-result-count {
		flex: 1;
		min-width: 0;
		margin: 0;
		font-size: 12px;
		line-height: 1.5;
	}
	body.lge-v2 .lge-projects .lge-filter-reset {
		display: inline-flex;
		flex: none;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		padding: 8px 0 8px 8px;
		border: 0;
		background: transparent;
		color: var(--lge-cool-black);
		font-family: var(--lge-font-body);
		font-size: 14px;
		font-weight: 600;
		text-decoration: underline;
		text-underline-offset: 3px;
		text-transform: none;
		cursor: pointer;
	}
	body.lge-v2 .lge-projects .lge-filter-reset[hidden] { display: none; }
	body.lge-v2 .lge-projects #lge-project-type:focus-visible,
	body.lge-v2 .lge-projects .lge-filter:focus-visible,
	body.lge-v2 .lge-projects .lge-filter-reset:focus-visible {
		outline: 2px solid var(--lge-cool-black);
		outline-offset: 3px;
	}
}

/* State filter as buttons: outlined, filled when selected. */
body.lge-v2 .lge-projects .lge-filter-row--state .lge-filters {
	gap: 8px;
	flex-wrap: wrap;
	overflow: visible;
	padding-bottom: 0;
	border-bottom: 0;
}
body.lge-v2 .lge-projects .lge-filter-row--state .lge-filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 18px;
	border: 1px solid rgba(7, 26, 36, .28);
	border-radius: 2px;
	background: var(--lge-white);
	color: var(--lge-cool-black);
	font-family: var(--lge-font-body);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	transition: background-color .2s var(--lge-ease, ease), border-color .2s var(--lge-ease, ease), color .2s var(--lge-ease, ease);
}
body.lge-v2 .lge-projects .lge-filter-row--state .lge-filter:hover {
	border-color: var(--lge-cool-black);
	color: var(--lge-cool-black);
}
body.lge-v2 .lge-projects .lge-filter-row--state .lge-filter.is-active,
body.lge-v2 .lge-projects .lge-filter-row--state .lge-filter.is-active:hover {
	background: var(--lge-cool-black);
	border-color: var(--lge-cool-black);
	color: var(--lge-white);
}
body.lge-v2 .lge-projects .lge-filter-row--state .lge-filter:focus-visible {
	outline: 2px solid var(--lge-yellow);
	outline-offset: 2px;
}

@media (max-width: 1024px) {
	body.lge-v2 .lge-projects .lge-filter-row--state .lge-filters {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 6px;
	}
	body.lge-v2 .lge-projects .lge-filter-row--state .lge-filter {
		min-height: 44px;
		padding: 8px 4px;
		font-size: 11px;
		letter-spacing: .06em;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.lge-v2 .lge-projects .lge-filter-row--state .lge-filter { transition: none; }
}
/* See All Projects (Kyle, 2026-10-27). */
.lge-see-all{display:flex;justify-content:center;margin:40px 0 8px}
.lge-see-all[hidden]{display:none}

/* Tighter grid (half the old 32px / 24px gaps) and, on desktop, search as an icon
   at the end of the Type row that opens when clicked (Kyle, Pastel #119/#121). */
body.lge-v2 .lge-projects .lge-grid { gap: 16px 12px; }
@media (min-width: 1025px) {
	body.lge-v2 .lge-projects .lge-controls { position: relative; }
	body.lge-v2 .lge-projects .lge-filterset { flex: 1 1 100%; padding-right: 56px; }
	body.lge-v2 .lge-projects .lge-search { position: absolute; top: 14px; right: var(--lge-gutter); z-index: 2; flex: none; width: auto; padding: 0; }
	body.lge-v2 .lge-projects .lge-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
	body.lge-v2 .lge-projects .lge-search-input { width: 40px; height: 40px; padding: 0 0 0 38px; border: 1px solid transparent; border-radius: 2px; background: transparent; cursor: pointer; font-size: 15px; transition: width .25s ease, background-color .2s ease, border-color .2s ease; }
	body.lge-v2 .lge-projects .lge-search-input::placeholder { color: transparent; }
	body.lge-v2 .lge-projects .lge-search:focus-within .lge-search-input,
	body.lge-v2 .lge-projects .lge-search-input:not(:placeholder-shown) { width: 280px; padding-right: 30px; cursor: text; background: var(--lge-white); border-color: rgba(7, 26, 36, .28); }
	body.lge-v2 .lge-projects .lge-search:focus-within .lge-search-input::placeholder { color: var(--lge-muted); }
	body.lge-v2 .lge-projects .lge-search-clear { right: 6px; }
}
@media (prefers-reduced-motion: reduce) { body.lge-v2 .lge-projects .lge-search-input { transition: none; } }
