/* Our Work template (page-templates/template-our-work.php). Loaded on that template only. */

/* Filter bar on white: search on the left, Type of Work dropdown on the right. */
.our-work-filters {
	background: #ffffff;
	padding: 1.25rem 0;
	border-top: 1px solid #e6e8ea;
	border-bottom: 1px solid #e6e8ea;
}
.our-work-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

/* Shared look for both controls: dark outline pill, like the site's outline buttons. */
.our-work-search input[type="search"],
.our-work-type select {
	width: 100%;
	height: 48px;
	border: 1.5px solid #0d1a1f;
	border-radius: 999px;
	background: #ffffff;
	color: #0d1a1f;
	font-size: 16px; /* 16px stops iOS zooming in on focus */
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.our-work-search input[type="search"]:hover,
.our-work-type select:hover {
	border-color: #3db737;
}
.our-work-search input[type="search"]:focus,
.our-work-type select:focus {
	outline: none;
	border-color: #3db737;
	box-shadow: 0 0 0 3px rgba(61, 183, 55, 0.3);
}

/* Search */
.our-work-search {
	position: relative;
	flex: 1 1 auto;
	max-width: 460px;
}
.our-work-search__icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: #0d1a1f;
	pointer-events: none;
}
.our-work-search input[type="search"] {
	padding: 0 18px 0 46px;
	line-height: 48px;
}
.our-work-search input[type="search"]::placeholder {
	color: #5f6b70;
	opacity: 1;
}
/* Dark "x" to clear the search (WebKit/Blink). */
.our-work-search input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	height: 16px;
	width: 16px;
	cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1a1f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Type of Work dropdown */
.our-work-type {
	position: relative;
	flex: 0 0 280px;
}
.our-work-type select {
	padding: 0 46px 0 22px;
	cursor: pointer;
	text-overflow: ellipsis;
}
.our-work-type select.is-active {
	background: #0d1a1f;
	color: #ffffff;
}
.our-work-type select.is-active + .our-work-type__chevron {
	color: #ffffff;
}
.our-work-type select option {
	color: #0d1a1f;
	background: #ffffff;
}
.our-work-type__chevron {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: #0d1a1f;
	pointer-events: none;
}
.our-work-apply {
	flex: none;
}

/* Phones: stack the two controls full width. */
@media (max-width: 767.98px) {
	.our-work-toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}
	.our-work-search {
		max-width: none;
	}
	.our-work-type {
		flex-basis: auto;
	}
}

/* Type of Work pills on cards: slightly smaller than the blog's so two fit on half-width cards. */
.our-work-grid .case-study .catagories .cat-single {
	height: 40px;
	padding: 0 16px;
	font-size: 0.85rem;
	white-space: nowrap;
}

.our-work-empty p {
	font-size: 1.1rem;
}

/* Blog page: same search + dropdown bar; "Show more articles" button */
.blog-filters { margin-bottom: 1rem; }
.blog-more { border-radius: 999px; padding: .75rem 2rem; font-weight: 600; }
