/*
 * JDW Tech Directory: public pages.
 * Colors come from the Blocksy palette (Customizer → Colors), with the
 * current JDW values as fallbacks, so a palette change carries over.
 */

.jdw-dir {
	--jdw-accent: var(--theme-palette-color-1, #bc3d27);
	--jdw-teal: var(--theme-palette-color-3, #106677);
	--jdw-ink: var(--theme-palette-color-4, #111518);
	--jdw-line: var(--theme-palette-color-5, #e1e8ed);
	--jdw-soft: var(--theme-palette-color-6, #f2f5f7);
	--jdw-page: var(--theme-palette-color-7, #fafbfc);
	--jdw-card: var(--theme-palette-color-8, #ffffff);
	--jdw-muted: #5b6670;
	--jdw-radius: 14px;
	--jdw-shadow: 0 1px 2px rgba(17, 21, 24, .06), 0 4px 16px rgba(17, 21, 24, .05);

	background: var(--jdw-page);
	color: var(--jdw-ink);
	line-height: 1.6;
	padding-bottom: 64px;
}

.jdw-dir *,
.jdw-dir *::before,
.jdw-dir *::after {
	box-sizing: border-box;
}

.jdw-dir h1,
.jdw-dir h2,
.jdw-dir h3 {
	color: var(--jdw-ink);
	margin: 0;
	line-height: 1.2;
}

.jdw-dir a {
	color: var(--jdw-teal);
}

.jdw-dir ul,
.jdw-dir ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.jdw-dir-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.jdw-dir-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* --- Breadcrumbs --- */

.jdw-dir-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 16px 0;
	font-size: 14px;
	color: var(--jdw-muted);
}

.jdw-dir-breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 4px;
	opacity: .5;
}

.jdw-dir-breadcrumbs a {
	color: var(--jdw-muted);
	text-decoration: none;
}

.jdw-dir-breadcrumbs a:hover {
	color: var(--jdw-accent);
	text-decoration: underline;
}

/* --- Buttons, chips, badges --- */

.jdw-dir-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--jdw-accent);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: filter .15s ease;
}

.jdw-dir-button:hover {
	filter: brightness(.92);
}

.jdw-dir-button.is-secondary {
	background: transparent;
	color: var(--jdw-accent) !important;
	box-shadow: inset 0 0 0 2px var(--jdw-accent);
}

.jdw-dir-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px !important;
}

.jdw-dir-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--jdw-soft);
	color: var(--jdw-ink) !important;
	font-size: 14px;
	text-decoration: none;
	border: 1px solid var(--jdw-line);
}

a.jdw-dir-chip:hover {
	border-color: var(--jdw-accent);
	color: var(--jdw-accent) !important;
}

.jdw-dir-chip.is-plain {
	background: var(--jdw-card);
}

.jdw-dir-count {
	font-size: 12px;
	color: var(--jdw-muted);
}

.jdw-dir-badges,
.jdw-dir-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.jdw-dir-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--jdw-soft);
	color: var(--jdw-muted);
	font-size: 13px;
	line-height: 1.5;
}

.jdw-dir-badge .jdw-dir-icon {
	width: 14px;
	height: 14px;
}

.jdw-dir-badge.is-verified {
	background: #e6f2f4;
	color: var(--jdw-teal);
}

.jdw-dir-badge.is-hiring {
	background: #e8f5ec;
	color: #1d6b38;
}

.jdw-dir-badge.is-featured {
	background: #f8e9e5;
	color: var(--jdw-accent);
	font-weight: 600;
}

/* --- Logos --- */

.jdw-dir-logo {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--jdw-card);
	border: 1px solid var(--jdw-line);
	display: flex;
	align-items: center;
	justify-content: center;
}

.jdw-dir-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 4px;
}

.jdw-dir-logo-fallback {
	font-weight: 700;
	font-size: 20px;
	color: var(--jdw-accent);
}

.jdw-dir-logo--lg {
	width: 120px;
	height: 120px;
	border-radius: 18px;
}

.jdw-dir-logo--lg img {
	padding: 10px;
}

.jdw-dir-logo--lg .jdw-dir-logo-fallback {
	font-size: 44px;
}

/* --- Profile --- */

/* Profile header: a white card with the logo beside the name (no cover banner).
   The brand-color top edge keeps it from looking plain. */
.jdw-dir-profile-head {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 28px;
	background: var(--jdw-card);
	border: 1px solid var(--jdw-line);
	border-top: 4px solid var(--jdw-accent);
	border-radius: var(--jdw-radius);
}

.jdw-dir-profile-head .jdw-dir-button {
	align-self: flex-start;
	margin-top: 4px;
}

.jdw-dir-profile-title {
	flex: 1;
	min-width: 0;
}

.jdw-dir-profile-title h1 {
	font-size: clamp(28px, 4vw, 40px);
	margin-bottom: 6px;
}

.jdw-dir-tagline {
	margin: 0 0 12px;
	font-size: 18px;
	color: var(--jdw-muted);
}

.jdw-dir-profile-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	margin-top: 24px;
}

.jdw-dir-panel {
	background: var(--jdw-card);
	border: 1px solid var(--jdw-line);
	border-radius: var(--jdw-radius);
	padding: 24px;
	margin-bottom: 24px;
}

.jdw-dir-panel h2 {
	font-size: 20px;
	margin-bottom: 16px;
}

.jdw-dir-prose > :first-child {
	margin-top: 0;
}

.jdw-dir-prose > :last-child {
	margin-bottom: 0;
}

.jdw-dir-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

.jdw-dir-gallery a {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.jdw-dir-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .2s ease;
}

.jdw-dir-gallery a:hover img {
	transform: scale(1.04);
}

.jdw-dir-facts {
	margin: 0;
}

.jdw-dir-facts > div {
	padding: 12px 0;
	border-top: 1px solid var(--jdw-line);
}

.jdw-dir-facts > div:first-child {
	border-top: 0;
	padding-top: 0;
}

.jdw-dir-facts dt {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--jdw-muted);
	margin-bottom: 2px;
}

.jdw-dir-facts dd {
	margin: 0;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.jdw-dir-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px !important;
	padding-top: 16px !important;
	border-top: 1px solid var(--jdw-line);
}

.jdw-dir-social a {
	font-size: 14px;
	font-weight: 500;
}

.jdw-dir-side-note {
	font-size: 14px;
	color: var(--jdw-muted);
	margin: 0 0 12px;
}

.jdw-dir-related {
	margin-top: 24px;
}

.jdw-dir-related h2 {
	font-size: 22px;
	margin-bottom: 16px;
}

/* --- Listing pages --- */

.jdw-dir-listing-head {
	padding: 24px 0 32px;
}

.jdw-dir-listing-head h1 {
	font-size: clamp(30px, 4.5vw, 44px);
	margin-bottom: 12px;
}

.jdw-dir-intro {
	max-width: 720px;
	font-size: 18px;
	color: var(--jdw-muted);
	margin-bottom: 20px;
}

.jdw-dir-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.jdw-dir-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--jdw-card);
	border: 1px solid var(--jdw-line);
	border-radius: var(--jdw-radius);
	padding: 20px;
	transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.jdw-dir-card:hover,
.jdw-dir-card:focus-within {
	box-shadow: var(--jdw-shadow);
	border-color: #cfd8de;
	transform: translateY(-2px);
}

.jdw-dir-card.is-featured {
	border-color: rgba(188, 61, 39, .45);
}

.jdw-dir-card-top {
	display: flex;
	align-items: center;
	gap: 14px;
}

.jdw-dir-card-title {
	font-size: 18px !important;
	margin-bottom: 2px !important;
}

.jdw-dir-card-link {
	color: var(--jdw-ink) !important;
	text-decoration: none;
}

/* Stretch the title link over the whole card. */
.jdw-dir-card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--jdw-radius);
}

.jdw-dir-card-link:focus-visible {
	outline: none;
}

.jdw-dir-card-link:focus-visible::after {
	outline: 2px solid var(--jdw-accent);
	outline-offset: 2px;
}

.jdw-dir-card-place {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	font-size: 14px;
	color: var(--jdw-muted);
}

.jdw-dir-card-tagline {
	margin: 0;
	color: var(--jdw-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.jdw-dir-card-meta {
	margin-top: auto;
}

.jdw-dir-empty {
	text-align: center;
	padding: 48px 16px;
	background: var(--jdw-card);
	border: 1px dashed var(--jdw-line);
	border-radius: var(--jdw-radius);
}

.jdw-dir-browse {
	margin-top: 48px;
}

.jdw-dir-browse h2 {
	font-size: 22px;
	margin-bottom: 16px;
}

.jdw-dir-pagination {
	margin-top: 32px;
}

/* --- Gallery lightbox --- */

.jdw-dir-lightbox {
	border: 0;
	padding: 0;
	background: transparent;
	max-width: min(1100px, 94vw);
	max-height: 90vh;
}

.jdw-dir-lightbox::backdrop {
	background: rgba(17, 21, 24, .85);
}

.jdw-dir-lightbox img {
	display: block;
	max-width: 100%;
	max-height: 86vh;
	border-radius: 8px;
}

.jdw-dir-lightbox button {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	font-size: 24px;
	line-height: 40px;
	cursor: pointer;
}

/* --- Phones and tablets --- */

@media (max-width: 900px) {
	.jdw-dir-profile-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 680px) {
	.jdw-dir-profile-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding: 20px;
	}

	.jdw-dir-profile-head .jdw-dir-logo--lg {
		width: 88px;
		height: 88px;
	}

	.jdw-dir-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.jdw-dir-panel {
		padding: 18px;
	}
}

/* --- Account pages: join, login, dashboard --- */

.jdw-dir-account {
	padding-top: 40px;
}

.jdw-dir-account-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
	gap: 48px;
	align-items: start;
}

.jdw-dir-account-narrow {
	max-width: 520px;
}

.jdw-dir-account-wide {
	max-width: 860px;
}

.jdw-dir-account h1 {
	font-size: clamp(28px, 4vw, 40px);
	margin-bottom: 12px;
}

.jdw-dir-account-form h1,
.jdw-dir-account-form h2 {
	font-size: 26px;
	margin-bottom: 16px;
}

.jdw-dir-eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--jdw-accent);
}

.jdw-dir-muted {
	color: var(--jdw-muted);
}

.jdw-dir-checklist {
	margin: 20px 0 !important;
}

.jdw-dir-checklist li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 12px;
	font-size: 17px;
}

.jdw-dir-checklist li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 6px;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--jdw-teal);
	border-bottom: 2px solid var(--jdw-teal);
	transform: rotate(-45deg);
}

.jdw-dir-field {
	margin: 0 0 16px;
}

.jdw-dir-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 15px;
}

.jdw-dir-field input {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #c9d3da;
	border-radius: 10px;
	background: var(--jdw-card);
	font-size: 16px;
}

.jdw-dir-field input:focus {
	outline: 2px solid var(--jdw-teal);
	outline-offset: 1px;
	border-color: var(--jdw-teal);
}

.jdw-dir-help {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--jdw-muted);
}

.jdw-dir-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 15px;
}

.jdw-dir-check input {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.jdw-dir-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cf-turnstile {
	margin-bottom: 16px;
}

.jdw-dir-submit {
	width: 100%;
	justify-content: center;
	border: 0;
	font-size: 16px;
	cursor: pointer;
}

.jdw-dir-switch {
	margin: 20px 0 0;
	font-size: 15px;
	text-align: center;
}

.jdw-dir-alert {
	padding: 14px 16px;
	margin-bottom: 20px;
	border-radius: 10px;
	background: #fff8e6;
	border: 1px solid #f1d58a;
	font-size: 15px;
}

.jdw-dir-alert.is-success {
	background: #e8f5ec;
	border-color: #a9d8b8;
}

.jdw-dir-alert.is-error {
	background: #fdecea;
	border-color: #f2b8b1;
}

.jdw-dir-alert p {
	margin: 0 0 6px;
}

.jdw-dir-alert ul {
	list-style: disc !important;
	padding-left: 20px !important;
}

.jdw-dir-resend {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--jdw-line);
	font-size: 15px;
}

.jdw-dir-resend summary {
	cursor: pointer;
	color: var(--jdw-teal);
	margin-bottom: 12px;
}

.jdw-dir-dash-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 24px;
}

@media (max-width: 900px) {
	.jdw-dir-account-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

@media (max-width: 680px) {
	.jdw-dir-account {
		padding-top: 20px;
	}

	.jdw-dir-dash-head {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* --- Owner dashboard: profile editor --- */

.jdw-dir-status-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}

.jdw-dir-status-row p {
	margin: 8px 0 0;
}

.jdw-dir-progress {
	height: 8px;
	margin-top: 20px;
	border-radius: 999px;
	background: var(--jdw-soft);
	overflow: hidden;
}

.jdw-dir-progress-bar {
	height: 100%;
	border-radius: 999px;
	background: var(--jdw-teal);
}

.jdw-dir-status .jdw-dir-alert {
	margin: 16px 0 0;
}

.jdw-dir-profile-form fieldset {
	min-width: 0;
}

.jdw-dir-profile-form legend {
	float: left;
	width: 100%;
	margin-bottom: 16px;
	padding: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--jdw-ink);
}

.jdw-dir-profile-form legend + * {
	clear: left;
}

.jdw-dir-req {
	margin-left: 6px;
	font-size: 12px;
	font-weight: 500;
	color: var(--jdw-accent);
}

.jdw-dir-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 15px;
}

.jdw-dir-help-inline {
	font-weight: 400;
	font-size: 13px;
	color: var(--jdw-muted);
}

.jdw-dir-field select,
.jdw-dir-field input[type=number],
.jdw-dir-field input[type=tel] {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #c9d3da;
	border-radius: 10px;
	background: var(--jdw-card);
	font-size: 16px;
}

.jdw-dir-field input[type=file] {
	padding: 8px 0;
	border: 0;
	background: transparent;
	font-size: 15px;
}

.jdw-dir-field-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0 16px;
}

.jdw-dir-field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0 16px;
}

.jdw-dir-field .wp-editor-wrap {
	border: 1px solid #c9d3da;
	border-radius: 10px;
	overflow: hidden;
}

.jdw-dir-image-row {
	display: flex;
	align-items: center;
	gap: 16px;
}

.jdw-dir-logo--md {
	width: 96px;
	height: 96px;
	border-radius: 16px;
}

.jdw-dir-logo--md img,
.jdw-dir-logo--md .jdw-dir-logo-fallback {
	padding: 6px;
}

.jdw-dir-pending-thumb {
	display: block;
	width: 56px;
	height: 56px;
	margin-top: 4px;
	object-fit: contain;
	border: 1px dashed var(--jdw-line);
	border-radius: 8px;
}

.jdw-dir-check-inline {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	font-weight: 400 !important;
	font-size: 14px !important;
}

.jdw-dir-gallery-edit {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 8px !important;
}

.jdw-dir-gallery-edit li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 14px;
}

.jdw-dir-gallery-edit img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 8px;
}

.jdw-dir-gallery-edit label {
	display: flex !important;
	align-items: center;
	gap: 4px;
	font-weight: 400 !important;
	margin: 0 !important;
}

.jdw-dir-choice-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 8px;
}

.jdw-dir-choice-grid label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid var(--jdw-line);
	border-radius: 10px;
	background: var(--jdw-card);
	font-size: 15px;
	cursor: pointer;
}

.jdw-dir-choice-grid label:has(input:checked) {
	border-color: var(--jdw-teal);
	background: #e6f2f4;
}

.jdw-dir-choice-grid label:has(input:disabled) {
	opacity: .5;
	cursor: not-allowed;
}

.jdw-dir-form-actions {
	position: sticky;
	bottom: 0;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 16px 0;
	background: var(--jdw-page);
	border-top: 1px solid var(--jdw-line);
}

.jdw-dir-form-actions .jdw-dir-button {
	border: 0;
	font-size: 16px;
	cursor: pointer;
}

@media (max-width: 680px) {
	.jdw-dir-status-row {
		flex-direction: column;
	}

	.jdw-dir-form-actions {
		flex-direction: column-reverse;
	}

	.jdw-dir-form-actions .jdw-dir-button {
		width: 100%;
		justify-content: center;
	}
}

/* --- Form fields: beat Blocksy's theme form styles ---
   Blocksy gives inputs a transparent border and a 5% grey fill through its
   --theme-form-field-* variables, which makes them nearly invisible on our white
   panels. Re-point those variables inside the directory, and use selectors
   specific enough to win over Blocksy's input[type] rules. The border color
   (#7b8a95) meets the 3:1 contrast WCAG asks for on form controls. */

.jdw-dir {
	--theme-form-field-border-initial-color: #7b8a95;
	--theme-form-field-border-focus-color: var(--jdw-teal);
	--theme-form-field-background-initial-color: #ffffff;
	--theme-form-field-background-focus-color: #ffffff;
	--theme-form-text-initial-color: var(--jdw-ink);
	--theme-form-text-focus-color: var(--jdw-ink);
}

.jdw-dir .jdw-dir-field :is(input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=number], input[type=search]),
.jdw-dir .jdw-dir-field select {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #7b8a95;
	border-radius: 10px;
	background-color: #ffffff;
	color: var(--jdw-ink);
	font-size: 16px;
	box-shadow: inset 0 1px 2px rgba(17, 21, 24, .06);
}

.jdw-dir .jdw-dir-field :is(input, select):hover {
	border-color: #5b6670;
}

.jdw-dir .jdw-dir-field :is(input, select):focus {
	border-color: var(--jdw-teal);
	outline: 2px solid var(--jdw-teal);
	outline-offset: 1px;
}

.jdw-dir .jdw-dir-field input::placeholder {
	color: #7b8a95;
}

/* --- Search + filters bar --- */

.jdw-dir-filters {
	display: grid;
	grid-template-columns: minmax(220px, 2fr) repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px 16px;
	align-items: end;
	padding: 20px;
	margin-bottom: 12px;
	background: var(--jdw-card);
	border: 1px solid var(--jdw-line);
	border-radius: var(--jdw-radius);
}

.jdw-dir-filters .jdw-dir-field,
.jdw-dir-filters .jdw-dir-check {
	margin: 0;
}

.jdw-dir-filters .jdw-dir-field label {
	font-size: 13px;
	margin-bottom: 4px;
}

.jdw-dir-filter-hiring {
	align-self: center;
	padding-top: 20px;
}

.jdw-dir-filter-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	font-size: 15px;
}

.jdw-dir-filter-actions .jdw-dir-button {
	min-height: 48px;
	border: 0;
	font-size: 16px;
	cursor: pointer;
}

.jdw-dir-result-count {
	margin: 0 0 16px;
	font-size: 15px;
	color: var(--jdw-muted);
}

@media (max-width: 680px) {
	.jdw-dir-filters {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		padding: 16px;
	}

	.jdw-dir-filter-search,
	.jdw-dir-filter-actions {
		grid-column: 1 / -1;
	}

	.jdw-dir-filter-hiring {
		padding-top: 0;
	}

	.jdw-dir-filter-actions .jdw-dir-button {
		flex: 1;
		justify-content: center;
	}
}

/* Dropdown arrow. The background shorthand above clears Blocksy's own arrow,
   so selects need one of their own or they look like text boxes. */
.jdw-dir .jdw-dir-field select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6670' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
	cursor: pointer;
}

/* "How we list companies" line under listing headings. */
.jdw-dir-listing-note {
	max-width: 720px;
	margin: -8px 0 20px;
	font-size: 14px;
	color: var(--jdw-muted);
}
