/* ==========================================================================
   workfromanywhere.co — product reviews (v1.0.0)
   Upload to: /wp-content/themes/wfa-theme/assets/css/wfa-products.css
   Loaded by archive-wfa_product.php and single-wfa_product.php, after
   wfa-service.css (which styles the Visit buttons and icon lists).

   Same system as the job pages: small-capital labels, serif headings,
   thin line icons, square corners, ink and cream only.
   ========================================================================== */

.wfa-products {
	--p-ink:     var(--wfa-text, #14171a);
	--p-muted:   var(--wfa-muted, #5f6a70);
	--p-paper:   var(--wfa-bg, #faf7f2);
	--p-card:    var(--wfa-surface, #f2ede4);
	--p-line:    var(--wfa-line, #e2dcd2);
	--p-display: var(--wfa-display, "Fraunces", Georgia, "Times New Roman", serif);

	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	color: var(--p-ink);
	font-family: var(--wfa-ui, "Public Sans", system-ui, sans-serif);
}

/* Lines up with the logo: 40px gutter, 30px on phones. */
.wfa-products__wrap {
	padding: clamp(3rem, 7vw, 5rem) 40px clamp(4rem, 9vw, 6rem);
}

@media (max-width: 768px) {
	.wfa-products__wrap {
		padding-left: 30px;
		padding-right: 30px;
	}
}

/* ---------- shared ---------- */

.wfa-p-eyebrow {
	margin: 0 0 .9rem;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--p-muted);
}

.wfa-products__title {
	margin: 0;
	max-width: 22ch;
	font-family: var(--p-display);
	font-size: clamp(2.5rem, 6vw, 3.75rem);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.wfa-products__standfirst {
	max-width: 40rem;
	margin: 1.25rem 0 0;
	font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
	line-height: 1.65;
	color: var(--p-muted);
}

.wfa-products a.wfa-p-textlink {
	display: inline-flex;
	padding-bottom: .25rem;
	border-bottom: 1px solid currentColor;
	color: var(--p-ink);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.wfa-p-disclosure {
	max-width: 40rem;
	margin: 1.25rem 0 0;
	font-size: .8125rem;
	line-height: 1.55;
	color: var(--p-muted);
}

.wfa-products a:focus-visible {
	outline: 2px solid var(--p-ink);
	outline-offset: 3px;
}

.wfa-products .wfa-svc-caticon {
	display: block;
}

/* The Visit button, same flip as every other button on the site. */
.wfa-products a.wfa-cta,
.wfa-products a.wfa-cta:visited {
	min-height: 3rem;
	padding: .85rem 1.5rem;
	border: 1px solid var(--p-ink);
	background: var(--p-ink);
	color: var(--p-paper);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
}

.wfa-products a.wfa-cta:hover,
.wfa-products a.wfa-cta:focus-visible {
	background: var(--p-paper);
	color: var(--p-ink);
}

/* ---------- archive ---------- */

.wfa-products__head {
	margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
	padding-bottom: clamp(2rem, 4vw, 2.5rem);
	border-bottom: 1px solid var(--p-line);
}

.wfa-p-topics {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 2rem;
}

.wfa-products a.wfa-p-chip {
	display: inline-flex;
	padding: .45rem .75rem;
	border: 1px solid var(--p-line);
	color: var(--p-ink);
	font-size: .6875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
}

.wfa-products a.wfa-p-chip:hover {
	border-color: var(--p-ink);
}

.wfa-products a.wfa-p-chip.is-current {
	border-color: var(--p-ink);
	background: var(--p-ink);
	color: var(--p-paper);
}

.wfa-p-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wfa-p-grid > li {
	margin: 0;
}

@media (max-width: 1000px) {
	.wfa-p-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.wfa-p-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- product card ---------- */

.wfa-p-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--p-card);
	transition: transform .25s ease, box-shadow .25s ease;
}

.wfa-p-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 28px -18px rgba(20, 23, 26, .35);
}

.wfa-p-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--p-line);
	color: var(--p-ink);
}

.wfa-p-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wfa-p-card__icon .wfa-svc-caticon {
	width: 4rem;
	height: 4rem;
}

.wfa-p-card__pill {
	position: absolute;
	top: .75rem;
	left: .75rem;
	padding: .3rem .55rem;
	background: var(--p-paper);
	color: var(--p-ink);
	font-size: .625rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.wfa-p-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 1.25rem 1.25rem 1.4rem;
}

.wfa-p-card__name {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.wfa-products .wfa-p-card__name a {
	color: var(--p-ink);
	text-decoration: none;
}

.wfa-products .wfa-p-card__name a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.wfa-p-card__price {
	margin: .35rem 0 0;
	font-size: .875rem;
	color: var(--p-muted);
}

.wfa-p-card__verdict {
	margin: .9rem 0 0;
	padding-top: .9rem;
	border-top: 1px solid var(--p-line);
	font-family: var(--p-display);
	font-size: 1.125rem;
	line-height: 1.35;
}

.wfa-p-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: auto;
	padding-top: 1.4rem;
}

.wfa-p-card__foot a.wfa-cta {
	min-height: 2.75rem;
	padding: .7rem 1.1rem;
	font-size: .75rem;
}

/* ---------- empty state ---------- */

.wfa-p-soon {
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
	background: var(--p-card);
	text-align: center;
}

.wfa-p-soon__title {
	max-width: 24ch;
	margin: 0 auto 1rem;
	font-family: var(--p-display);
	font-size: clamp(1.75rem, 3.2vw, 2.375rem);
	font-weight: 400;
	line-height: 1.15;
	text-wrap: balance;
}

.wfa-p-soon__text {
	max-width: 36rem;
	margin: 0 auto 2.5rem;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--p-muted);
}

.wfa-p-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	max-width: 48rem;
	margin: 0 auto;
	border: 1px solid var(--p-line);
	background: var(--p-line);
}

@media (max-width: 600px) {
	.wfa-p-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.wfa-products a.wfa-p-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .9rem;
	padding: 1.75rem 1rem;
	background: var(--p-paper);
	color: var(--p-ink);
	text-decoration: none;
}

.wfa-products a.wfa-p-tile:hover {
	background: var(--p-card);
}

.wfa-p-tile .wfa-svc-caticon {
	width: 2.5rem;
	height: 2.5rem;
}

.wfa-p-tile__title {
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.wfa-p-pages {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 3rem;
}

.wfa-p-pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 .9rem;
	border: 1px solid var(--p-line);
	color: var(--p-ink);
	font-size: .8125rem;
	font-weight: 600;
	text-decoration: none;
}

.wfa-p-pages .page-numbers.current {
	border-color: var(--p-ink);
	background: var(--p-ink);
	color: var(--p-paper);
}

.wfa-p-grid + .wfa-p-disclosure,
.wfa-p-pages + .wfa-p-disclosure {
	margin-top: 2.5rem;
}

/* ---------- single review ---------- */

.wfa-p-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 2rem;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--p-muted);
}

.wfa-p-crumbs a {
	color: var(--p-muted);
	text-decoration: none;
}

.wfa-p-crumbs a:hover {
	color: var(--p-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wfa-p-head {
	max-width: 52rem;
	margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.wfa-p-head .wfa-products__standfirst {
	font-family: var(--p-display);
	font-size: clamp(1.375rem, 2.4vw, 1.75rem);
	line-height: 1.3;
	color: var(--p-ink);
}

.wfa-p-factrow {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1.75rem;
	margin: 1.75rem 0 2rem;
	padding: 0;
	list-style: none;
	font-size: .9375rem;
}

.wfa-p-factrow:empty {
	display: none;
}

.wfa-p-factrow li {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin: 0;
}

.wfa-p-factrow .wfa-ico {
	width: 1.125rem;
	height: 1.125rem;
	color: var(--p-muted);
}

.wfa-p-cols {
	display: grid;
	gap: 3rem;
	padding-top: clamp(2.5rem, 5vw, 3.5rem);
	border-top: 1px solid var(--p-line);
}

@media (min-width: 900px) {
	.wfa-p-cols {
		grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
		gap: clamp(3rem, 6vw, 5rem);
	}

	.wfa-p-side {
		position: sticky;
		top: 1.5rem;
		align-self: start;
	}

	/* The header button is for phones; on wide screens Visit lives in
	   the side panel. */
	.wfa-p-head__cta {
		display: none;
	}

	.wfa-p-head .wfa-p-disclosure {
		margin-top: 0;
	}
}

.wfa-p-body {
	max-width: 44rem;
	font-size: clamp(1.0625rem, 1.6vw, 1.125rem);
	line-height: 1.75;
}

.wfa-p-body > *:first-child { margin-top: 0; }

.wfa-p-body p {
	margin: 0 0 1.1em;
}

.wfa-p-body h2,
.wfa-p-body h3 {
	margin: 2em 0 .6em;
	font-family: var(--p-display);
	font-weight: 400;
	line-height: 1.2;
}

.wfa-p-body h2 { font-size: clamp(1.5rem, 2.8vw, 1.875rem); }
.wfa-p-body h3 { font-size: 1.375rem; }

.wfa-p-body ul {
	margin: .5em 0 1.4em;
	padding: 0;
	list-style: none;
}

.wfa-p-body ul > li {
	position: relative;
	margin: 0 0 .5em;
	padding-left: 1.9rem;
	line-height: 1.6;
}

.wfa-p-body ul > li::before {
	content: "";
	position: absolute;
	top: .3em;
	left: 0;
	width: 1.1rem;
	height: 1.1rem;
	background-color: var(--p-ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wfa-p-body a {
	color: var(--p-ink);
	text-underline-offset: .2em;
}

.wfa-p-proscons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--p-line);
}

@media (max-width: 600px) {
	.wfa-p-proscons {
		grid-template-columns: minmax(0, 1fr);
	}
}

.wfa-p-none {
	margin: 0;
	font-style: italic;
	color: var(--p-muted);
}

/* Side panel */
.wfa-p-panel {
	background: var(--p-card);
}

.wfa-p-panel__art {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	padding: 1.5rem;
	background: var(--p-line);
	color: var(--p-ink);
}

.wfa-p-panel__art img {
	max-width: 70%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.wfa-p-panel__art .wfa-svc-caticon {
	width: 4.5rem;
	height: 4.5rem;
}

.wfa-p-panel__body {
	padding: 1.5rem 1.5rem 1.75rem;
}

.wfa-p-panel__name {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.wfa-p-panel__price {
	margin: .35rem 0 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--p-line);
	font-size: .9375rem;
	color: var(--p-muted);
}

.wfa-p-panel .wfa-svc-icolist {
	margin-bottom: 1.5rem;
}

.wfa-p-panel__cta a.wfa-cta,
.wfa-p-panel__cta .wfa-cta {
	display: flex;
	width: 100%;
}

.wfa-p-panel__note {
	margin: .75rem 0 0;
	font-size: .75rem;
	color: var(--p-muted);
	text-align: center;
}

.wfa-products a.wfa-p-sidelink {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1.25rem;
	padding: 1.25rem;
	border: 1px solid var(--p-line);
	color: var(--p-ink);
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
}

.wfa-p-sidelink .wfa-svc-caticon {
	flex: 0 0 auto;
	width: 2.25rem;
	height: 2.25rem;
}

.wfa-products a.wfa-p-sidelink:hover span {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Band and related */
.wfa-p-band {
	margin-top: clamp(3.5rem, 7vw, 5rem);
	padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
	background: var(--p-card);
	text-align: center;
}

.wfa-p-band__title {
	max-width: 24ch;
	margin: 0 auto 1.75rem;
	font-family: var(--p-display);
	font-size: clamp(1.875rem, 3.6vw, 2.625rem);
	font-weight: 400;
	line-height: 1.12;
	text-wrap: balance;
}

.wfa-p-related {
	margin-top: clamp(3.5rem, 7vw, 5rem);
	padding-top: clamp(2.5rem, 5vw, 3.5rem);
	border-top: 1px solid var(--p-line);
}

.wfa-p-related__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: 2rem;
}

.wfa-p-related__title {
	margin: 0;
	font-family: var(--p-display);
	font-size: clamp(1.75rem, 3.2vw, 2.25rem);
	font-weight: 400;
	line-height: 1.12;
}

@media (prefers-reduced-motion: reduce) {
	.wfa-p-card {
		transition: none;
	}

	.wfa-p-card:hover {
		transform: none;
	}
}
