/*
 * WFA - Featured spaces (v1.0.0), for 291-featured-spaces.php
 * Upload to: /wp-content/mu-plugins/wfa/assets/featured/featured.css
 * House style: ink on cream, square corners, small-capital labels.
 */

/* The Featured label, with its star */
.wfa-ft-flag {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.4;
}
.wfa-ft-flag svg { flex: none; }

/* On a space's own page, after the eyebrow */
.wfa-ft-flag--top {
	margin-left: .5rem;
	padding: .15rem .5rem;
	background: var(--wfa-text, #14171a);
	color: var(--wfa-bg, #faf7f2);
	vertical-align: 1px;
}

/* On a photo in the city guide's co-working block */
.wfa-ft-flag--media {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	padding: .35rem .7rem;
	background: var(--wfa-text, #14171a);
	color: var(--wfa-bg, #faf7f2) !important;
}
.wfa-svc-space.is-featured { border-color: var(--wfa-text, #14171a); }

/* Directory: a featured place takes the whole first row */
.wfa-cwd-card.is-featured .wfa-cwd-card__in {
	border: 2px solid var(--wfa-text, #14171a);
	background: #fff;
}
@media (min-width: 900px) {
	.wfa-cwd-list > .wfa-cwd-card.is-featured { grid-column: 1 / -1; }
	.wfa-cwd-list > .wfa-cwd-card.is-featured .wfa-cwd-card__in { flex-direction: row; }
	.wfa-cwd-list > .wfa-cwd-card.is-featured .wfa-cwd-card__photo { flex: 0 0 42%; max-width: 42%; }
	.wfa-cwd-list > .wfa-cwd-card.is-featured .wfa-cwd-card__photo img { height: 100%; object-fit: cover; }
}

/* The trial box on a listed space's page */
.wfa-ft-box { border-color: var(--wfa-text, #14171a); }
.wfa-ft-box .wfa-ft-badge {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	margin: 0 0 .75rem !important;
	padding: .15rem .5rem;
	background: var(--wfa-text, #14171a);
	color: var(--wfa-bg, #faf7f2) !important;
	font-size: .6875rem !important;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.4 !important;
}
.wfa-ft-ask > summary { display: block; box-sizing: border-box; width: 100%; list-style: none; cursor: pointer; text-align: center; }
.wfa-ft-ask > summary::-webkit-details-marker { display: none; }
.wfa-ft-ask[open] > summary { display: none; }
.wfa-ft-form { display: grid; gap: .75rem; }
.wfa-ft-field { display: grid; gap: .3rem; font-size: .875rem; font-weight: 600; }
.wfa-ft-field em { font-style: normal; font-weight: 400; color: var(--wfa-muted, #5f6a70); }
.wfa-ft-field input {
	width: 100%;
	padding: .6rem .7rem;
	border: 1px solid var(--wfa-line, #e2dcd2);
	border-radius: 0;
	background: var(--wfa-bg, #faf7f2);
	font: inherit;
	font-weight: 400;
}
.wfa-ft-field input:focus { outline: 2px solid var(--wfa-text, #14171a); outline-offset: 0; border-color: var(--wfa-text, #14171a); }
.wfa-ft-box p.wfa-ft-small { margin: 0 !important; font-size: .8125rem !important; }
.wfa-ft-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wfa-ft-box p.wfa-ft-done { padding: .75rem .9rem; background: var(--wfa-surface, #f2ede4); color: var(--wfa-text, #14171a) !important; }
.wfa-ft-box p.wfa-ft-err { padding: .75rem .9rem; border: 1px solid #a3352b; color: #a3352b !important; }
.wfa-ft-form, .wfa-ft-form * { box-sizing: border-box; max-width: 100%; }
.wfa-ft-form button { width: 100%; }
