/**
 * Business Central Classifieds
 * Public classifieds and submission form.
 */

.bc-classified-listings,
.bc-classified-form {
	font-family: Arial, Helvetica, sans-serif;
	color: #15171b;
}

/* Public listings */

.bc-classified-listings {
	width: min(100%, 980px);
	margin: 26px 0 46px;
}

.bc-classified-listings-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
	gap: 36px;
	align-items: end;
	padding: 22px 0 20px;
	border-top: 4px solid #15171b;
	border-bottom: 1px solid #bfc6ce;
}

.bc-classified-eyebrow {
	display: block;
	margin-bottom: 6px;
	color: #174a78;
	font-size: 0.74rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.09em;
}

.bc-classified-listings-header h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2rem;
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.bc-classified-listings-header p {
	margin: 8px 0 0;
	color: #626975;
	font-size: 0.95rem;
	line-height: 1.5;
}

.bc-classified-filter {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}

.bc-classified-filter label {
	display: block;
	margin-bottom: 7px;
	color: #626975;
	font-size: 0.72rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.bc-classified-filter select {
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 7px 34px 7px 10px;
	border: 1px solid #bfc6ce;
	background: #ffffff;
	color: #15171b;
	font-family: inherit;
	font-size: 0.9rem;
}

.bc-classified-grid {
	border-bottom: 1px solid #bfc6ce;
}

.bc-classified-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid #d9dee4;
}

.bc-classified-card:last-child {
	border-bottom: 0;
}

.bc-classified-card-category {
	margin-bottom: 6px;
	color: #174a78;
	font-size: 0.72rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.075em;
}

.bc-classified-card-headline {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.14rem;
	font-weight: 700;
	line-height: 1.3;
}

.bc-classified-card-contact {
	margin-top: 5px;
	font-size: 0.94rem;
	line-height: 1.4;
}

.bc-classified-card-contact a {
	color: #174a78;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.bc-classified-card-contact a:hover,
.bc-classified-card-contact a:focus {
	color: #0d3152;
}

.bc-classified-card-meta {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 115px;
	color: #626975;
	font-size: 0.74rem;
	line-height: 1.35;
	text-align: right;
}

.bc-classified-card-meta strong {
	color: #252a31;
	font-weight: 800;
}

.bc-classified-empty {
	margin-top: 20px;
	padding: 22px;
	border: 1px solid #d9dee4;
	background: #f4f6f8;
	color: #626975;
}

/* Submission form */

.bc-classified-form {
	position: relative;
	width: min(100%, 780px);
	margin: 62px 0 64px;
	padding: 30px;
	background: #f4f6f8;
	border: 1px solid #d9dee4;
	border-top: 5px solid #174a78;
	box-sizing: border-box;
}

.bc-classified-form::before {
	content: "Post a Free Business Classified";
	display: block;
	margin: 0 0 26px;
	padding-bottom: 14px;
	border-bottom: 1px solid #bfc6ce;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.1;
}

.bc-classified-form p {
	margin: 0 0 24px;
}

.bc-classified-form label {
	display: block;
	margin-bottom: 7px;
	color: #15171b;
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.35;
}

.bc-classified-form input[type="text"],
.bc-classified-form input[type="email"],
.bc-classified-form select {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #aeb8c2;
	border-radius: 0;
	background: #ffffff;
	color: #15171b;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	box-sizing: border-box;
}

.bc-classified-form input[type="text"]:focus,
.bc-classified-form input[type="email"]:focus,
.bc-classified-form select:focus {
	outline: 2px solid #174a78;
	outline-offset: 1px;
	border-color: #174a78;
}

.bc-classified-form small {
	display: block;
	margin-top: 7px;
	color: #626975;
	font-size: 0.78rem;
	line-height: 1.45;
}

.bc-classified-form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 20px;
	border: 2px solid #174a78;
	border-radius: 0;
	background: #174a78;
	color: #ffffff;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 900;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.045em;
	cursor: pointer;
}

.bc-classified-form button[type="submit"]:hover,
.bc-classified-form button[type="submit"]:focus {
	background: #0d3152;
	border-color: #0d3152;
	color: #ffffff;
}

/* Submission messages */

.bc-classified-message {
	width: min(100%, 780px);
	margin: 24px 0;
	padding: 15px 18px;
	border-left: 4px solid;
	font-size: 0.9rem;
	line-height: 1.5;
	box-sizing: border-box;
}

.bc-classified-success {
	border-color: #2f7d46;
	background: #eef8f1;
	color: #214f30;
}

.bc-classified-error {
	border-color: #a32d2d;
	background: #fff0f0;
	color: #721c1c;
}

/* Tablet */

@media screen and (max-width: 782px) {

	.bc-classified-listings-header {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.bc-classified-filter {
		max-width: 320px;
	}

	.bc-classified-card {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.bc-classified-card-meta {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 6px 18px;
		text-align: left;
	}

	.bc-classified-form {
		width: 100%;
		margin-top: 42px;
		padding: 22px 18px;
	}

	.bc-classified-form::before {
		font-size: 1.45rem;
	}

	.bc-classified-form button[type="submit"] {
		width: 100%;
	}
}

/* Phone */

@media screen and (max-width: 480px) {

	.bc-classified-listings {
		margin-top: 18px;
	}

	.bc-classified-listings-header h2 {
		font-size: 1.7rem;
	}

	.bc-classified-card {
		padding: 17px 0;
	}

	.bc-classified-card-headline {
		font-size: 1.05rem;
	}
}