/*
 * WFA - 270 Cost of living city pages (v1.0.0)
 * Upload to: /wp-content/mu-plugins/wfa/assets/col/col.css
 * Loads on /cost-of-living/{city}/ only, after wfa-tools.css, and uses
 * its tokens (--t-ink, --t-muted, --t-line, --t-card, --t-display).
 */

.wfa-col-block {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-top: clamp(1.75rem, 3vw, 2.25rem);
	border-top: 1px solid var(--t-ink, #14171a);
}

.wfa-col-h2 {
	max-width: 46rem;
	margin: .5rem 0 0;
	font-family: var(--t-display, "Fraunces", Georgia, serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 400;
	line-height: 1.2;
	color: var(--t-ink, #14171a);
}

.wfa-col-h3 {
	margin: 0 0 .5rem;
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--t-muted, #5f6a70);
}

.wfa-col-lead {
	max-width: 46rem;
	margin: .75rem 0 0;
	font-size: .9375rem;
	line-height: 1.6;
	color: var(--t-muted, #5f6a70);
}

/* Where the city sits, cheapest to dearest */
.wfa-col-scale {
	position: relative;
	max-width: 46rem;
	height: 3.25rem;
	margin: 1.5rem 0 0;
}

.wfa-col-scale__bar {
	position: absolute;
	top: .5rem;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--t-line, #e2dcd2);
}

.wfa-col-scale__dot {
	position: absolute;
	top: 0;
	width: 1.125rem;
	height: 1.125rem;
	margin-left: -.5625rem;
	background: var(--t-ink, #14171a);
	border: 3px solid var(--t-paper, #faf7f2);
	border-radius: 50%;
}

.wfa-col-scale__end {
	position: absolute;
	bottom: 0;
	left: 0;
	font-size: .75rem;
	color: var(--t-muted, #5f6a70);
	font-variant-numeric: tabular-nums;
}

.wfa-col-scale__end.is-right {
	left: auto;
	right: 0;
}

.wfa-col-lists {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1.5rem 2.5rem;
	margin-top: 1.75rem;
}

.wfa-col-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--t-ink, #14171a);
}

.wfa-col-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: .7rem 0;
	border-bottom: 1px solid var(--t-line, #e2dcd2);
	font-variant-numeric: tabular-nums;
}

.wfa-col-list li a {
	font-family: var(--t-display, "Fraunces", Georgia, serif);
	font-size: 1.0625rem;
	color: var(--t-ink, #14171a);
	text-decoration: none;
}

.wfa-col-list li a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wfa-col-list li span {
	font-size: .875rem;
	color: var(--t-muted, #5f6a70);
	white-space: nowrap;
}

/* The guide's prices and rents */
.wfa-col-table {
	width: 100%;
	margin: 1.25rem 0 0;
	border-collapse: collapse;
	border-top: 1px solid var(--t-ink, #14171a);
	font-size: .9375rem;
	line-height: 1.5;
}

.wfa-col-table th,
.wfa-col-table td {
	padding: .8rem 1rem .8rem 0;
	border: 0;
	border-bottom: 1px solid var(--t-line, #e2dcd2);
	background: none;
	text-align: left;
	vertical-align: top;
}

.wfa-col-table th {
	width: 34%;
	font-weight: 600;
	color: var(--t-ink, #14171a);
}

.wfa-col-table__fig {
	width: 22%;
	font-variant-numeric: tabular-nums;
	color: var(--t-ink, #14171a);
}

.wfa-col-table--two .wfa-col-table__fig {
	width: auto;
}

.wfa-col-table__note {
	font-size: .8125rem;
	color: var(--t-muted, #5f6a70);
}

@media (max-width: 640px) {
	.wfa-col-table tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		border-bottom: 1px solid var(--t-line, #e2dcd2);
		padding: .7rem 0;
	}

	.wfa-col-table th,
	.wfa-col-table td {
		width: auto;
		padding: 0;
		border: 0;
	}

	.wfa-col-table__fig {
		text-align: right;
	}

	.wfa-col-table__note {
		grid-column: 1 / -1;
		padding-top: .25rem !important;
	}
}

/* Questions */
.wfa-col-faq {
	max-width: 46rem;
	margin: 1.25rem 0 0;
}

.wfa-col-faq > div {
	padding: 1rem 0;
	border-bottom: 1px solid var(--t-line, #e2dcd2);
}

.wfa-col-faq dt {
	font-weight: 600;
	color: var(--t-ink, #14171a);
}

.wfa-col-faq dd {
	margin: .35rem 0 0;
	font-size: .9375rem;
	line-height: 1.6;
	color: var(--t-muted, #5f6a70);
}

/* Links */
.wfa-col-more {
	margin: 1.25rem 0 0;
}

.wfa-col-more a,
.wfa-col-links a {
	padding-bottom: .2rem;
	border-bottom: 1px solid currentColor;
	color: var(--t-ink, #14171a);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
}

.wfa-col-links {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding: 1.5rem;
	background: var(--t-card, #f2ede4);
}

.wfa-col-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: .9rem 1.75rem;
	margin: .75rem 0 0;
	padding: 0;
	list-style: none;
}
