/* ==========================================================================
   workfromanywhere.co — tools (v1.3.0)
   Upload to: /wp-content/themes/wfa-theme/assets/css/wfa-tools.css
   Loaded on /tools/ and on each tool page only.

   Same system as the guides and the visa checker: small-capital
   eyebrows, serif headings, square corners, ink and cream.
   ========================================================================== */

.wfa-tl,
.wfa-sc-page {
	--t-ink:     var(--wfa-text, #14171a);
	--t-muted:   var(--wfa-muted, #5f6a70);
	--t-paper:   var(--wfa-bg, #faf7f2);
	--t-card:    var(--wfa-surface, #f2ede4);
	--t-line:    var(--wfa-line, #e2dcd2);
	--t-display: var(--wfa-display, "Fraunces", Georgia, "Times New Roman", serif);
	--t-yes:      var(--wfa-accent, #0f5548);
	--t-yes-soft: var(--wfa-accent-soft, #e4ece9);
	--t-mid:      #7a5c12;
	--t-mid-soft: #f1e8d2;
	--t-no:       var(--wfa-flag, #b4562f);
	--t-no-soft:  #f4e3da;

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

.wfa-tl *,
.wfa-tl *::before,
.wfa-tl *::after,
.wfa-sc-page *,
.wfa-sc-page *::before,
.wfa-sc-page *::after {
	box-sizing: border-box;
}

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

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

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

.wfa-tl-eyebrow a {
	color: inherit;
	text-decoration: none;
}

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

.wfa-tl a:focus-visible,
.wfa-sc-page a:focus-visible,
.wfa-sc-page button:focus-visible,
.wfa-sc-page input:focus-visible {
	outline: 2px solid var(--t-ink);
	outline-offset: 3px;
}

/* ---------- heads ---------- */

.wfa-tl__head,
.wfa-sc__head {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

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

/* ==========================================================================
   /tools/
   ========================================================================== */

/* Six tracks, each card taking two, as on /cities/. With one card over
   a row of three, the first runs full width as a lead (picture left,
   text right); with two over, the first two share a row. */
.wfa-tl-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 3rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wfa-tl-grid > .wfa-tl-card {
	grid-column: span 2;
}

.wfa-tl-grid--r3-2 > .wfa-tl-card:nth-child(-n+2) {
	grid-column: span 3;
}

.wfa-tl-grid--r3-1 > .wfa-tl-card:first-child {
	grid-column: 1 / -1;
}

@media (min-width: 1001px) {
	.wfa-tl-grid--r3-1 > .wfa-tl-card:first-child {
		display: grid;
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
		align-items: center;
		gap: clamp(2rem, 4vw, 3.5rem);
		padding-bottom: 3rem;
		border-bottom: 1px solid var(--t-line);
	}

	.wfa-tl-grid--r3-1 > .wfa-tl-card:first-child .wfa-tl-card__body {
		padding-top: 0;
	}

	.wfa-tl-grid--r3-1 > .wfa-tl-card:first-child .wfa-tl-card__name {
		font-size: clamp(2rem, 3.4vw, 2.75rem);
	}

	.wfa-tl-grid--r3-1 > .wfa-tl-card:first-child .wfa-tl-card__says {
		font-size: 1.0625rem;
	}
}

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

	.wfa-tl-grid > .wfa-tl-card,
	.wfa-tl-grid--r3-1 > .wfa-tl-card:first-child,
	.wfa-tl-grid--r3-2 > .wfa-tl-card:nth-child(-n+2) {
		grid-column: span 1;
	}

	.wfa-tl-grid--r2-1 > .wfa-tl-card:first-child {
		grid-column: 1 / -1;
	}
}

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

	.wfa-tl-grid--r2-1 > .wfa-tl-card:first-child {
		grid-column: auto;
	}
}

.wfa-tl-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
}

.wfa-tl-card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--t-card);
}

/* The drawings: a miniature of each tool's own answer. */
.wfa-tl-art {
	display: block;
	width: 100%;
	height: 100%;
	transition: transform .6s ease;
}

.wfa-tl-card:hover .wfa-tl-art {
	transform: scale(1.03);
}

.wfa-tl-art .bg        { fill: var(--t-card); }
.wfa-tl-art .card      { fill: var(--t-paper); }
.wfa-tl-art .ink       { fill: var(--t-ink); }
.wfa-tl-art .line      { fill: var(--t-line); }
.wfa-tl-art .line-dark { fill: #cfc6b6; }
.wfa-tl-art .night     { fill: #d9d1c3; }
.wfa-tl-art .fringe    { fill: #e6dfd1; }
.wfa-tl-art .yes       { fill: var(--t-yes); }
.wfa-tl-art .mid       { fill: var(--t-mid); }
.wfa-tl-art .no        { fill: var(--t-no); }
.wfa-tl-art .yes-soft  { fill: var(--t-yes-soft); }
.wfa-tl-art .mid-soft  { fill: var(--t-mid-soft); }
.wfa-tl-art .no-soft   { fill: var(--t-no-soft); }
.wfa-tl-art .hatch     { fill: rgba(20, 23, 26, .16); }
.wfa-tl-art .stripe    { fill: var(--t-yes); opacity: .82; }

.wfa-tl-art .num {
	fill: var(--t-ink);
	font-family: var(--t-display);
	font-size: 72px;
	letter-spacing: -2px;
}

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

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

.wfa-tl-card__name {
	margin: 0;
	font-family: var(--t-display);
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -.01em;
	text-wrap: balance;
}

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

/* The whole card clicks through the name. */
.wfa-tl .wfa-tl-card__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.wfa-tl .wfa-tl-card:hover .wfa-tl-card__name a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.wfa-tl-card__says {
	max-width: 34rem;
	margin: .75rem 0 0;
	font-size: .9375rem;
	line-height: 1.6;
	color: var(--t-muted);
}

.wfa-tl-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.wfa-tl-card__tags li {
	margin: 0;
	padding: .3rem .55rem;
	border: 1px solid var(--t-line);
	font-size: .6875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .06em;
	color: var(--t-ink);
}

.wfa-tl-card__go {
	align-self: flex-start;
	margin-top: 1.25rem;
	padding-bottom: .25rem;
	border-bottom: 1px solid currentColor;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* ==========================================================================
   /schengen-calculator/
   ========================================================================== */

.wfa-sc-nojs {
	max-width: 40rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--t-line);
	background: var(--t-card);
	font-size: .9375rem;
	line-height: 1.6;
}

.wfa-sc-nojs a {
	color: var(--t-ink);
}

/* Inputs on the left, the answer on the right, which stays in view
   while you type on a wide screen. */
.wfa-sc {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}

.wfa-sc[hidden] {
	display: none;
}

@media (min-width: 960px) {
	.wfa-sc {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	}

	.wfa-sc__result {
		position: sticky;
		top: calc(var(--wfa-header-h, 70px) + 1.5rem);
	}
}

.wfa-sc__inputs {
	display: grid;
	gap: 1px;
	min-width: 0;
	border: 1px solid var(--t-line);
	background: var(--t-line);
}

.wfa-sc-block {
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background: var(--t-card);
}

.wfa-sc-block__title {
	margin: 0;
	font-family: var(--t-display);
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1.2;
}

.wfa-sc-block__hint {
	max-width: 36rem;
	margin: .5rem 0 1.1rem;
	font-size: .875rem;
	line-height: 1.55;
	color: var(--t-muted);
}

.wfa-sc-trips {
	display: grid;
	gap: .9rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: trip;
}

.wfa-sc-trip {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 5.5rem auto;
	align-items: end;
	gap: .5rem 1rem;
	margin: 0;
	padding-bottom: .9rem;
	border-bottom: 1px solid var(--t-line);
}

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

.wfa-sc-trip.is-bad .wfa-sc-input {
	border-bottom-color: var(--t-no);
}

.wfa-sc-trip__len {
	padding-bottom: .65rem;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .04em;
	font-variant-numeric: tabular-nums;
	color: var(--t-muted);
	white-space: nowrap;
}

.wfa-sc-trip.is-bad .wfa-sc-trip__len {
	color: var(--t-no);
}

.wfa-sc-field {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	min-width: 0;
}

.wfa-sc-field--single {
	max-width: 16rem;
	margin-top: 1rem;
}

.wfa-sc-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.wfa-sc-label {
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--t-ink);
}

.wfa-sc-optional {
	margin-left: .3rem;
	font-weight: 500;
	letter-spacing: .08em;
	color: var(--t-muted);
}

.wfa-sc-page .wfa-sc-input {
	width: 100%;
	min-height: 2.75rem;
	padding: .5rem 0;
	border: 0;
	border-bottom: 1px solid var(--t-ink);
	border-radius: 0;
	background: transparent;
	color: var(--t-ink);
	font-family: inherit;
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
	box-shadow: none;
}

.wfa-sc-page .wfa-sc-remove {
	min-height: 2.75rem;
	padding: 0 .25rem;
	border: 0;
	background: transparent;
	color: var(--t-muted);
	font-family: inherit;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.wfa-sc-page .wfa-sc-remove:hover {
	color: var(--t-ink);
}

.wfa-sc-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.25rem;
}

.wfa-sc-page .wfa-sc-add {
	min-height: 2.75rem;
	padding: .6rem 1.25rem;
	border: 1px solid var(--t-ink);
	border-radius: 0;
	background: var(--t-paper);
	color: var(--t-ink);
	font-family: inherit;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
}

.wfa-sc-page .wfa-sc-add:hover {
	background: var(--t-ink);
	color: var(--t-paper);
}

.wfa-sc-page .wfa-sc-clear {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--t-muted);
	font-family: inherit;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.wfa-sc-privacy {
	margin: 0;
	padding: 1rem clamp(1.25rem, 3vw, 1.75rem);
	background: var(--t-paper);
	font-size: .8125rem;
	line-height: 1.55;
	color: var(--t-muted);
}

/* ---------- the answer ---------- */

.wfa-sc__result {
	min-width: 0;
}

.wfa-sc-now {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--t-ink);
}

.wfa-sc-now__big {
	margin: 0;
	font-family: var(--t-display);
	font-size: clamp(1.75rem, 3.4vw, 2.375rem);
	line-height: 1.1;
}

.wfa-sc-now__n {
	font-size: clamp(3.5rem, 8vw, 5.5rem);
	line-height: 1;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
}

.wfa-sc-now__sub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin: 1rem 0 0;
	font-size: .9375rem;
	line-height: 1.5;
	color: var(--t-muted);
}

.wfa-sc-chip {
	display: inline-flex;
	padding: .3rem .6rem;
	font-size: .6875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.wfa-sc-chip.is-yes {
	background: var(--t-yes-soft);
	color: var(--t-yes);
}

.wfa-sc-chip.is-mid {
	background: var(--t-mid-soft);
	color: var(--t-mid);
}

.wfa-sc-chip.is-short {
	background: var(--t-no-soft);
	color: var(--t-no);
}

.wfa-sc-warn {
	margin: 1rem 0 0;
	padding: .9rem 1rem;
	background: var(--t-no-soft);
	color: var(--t-no);
	font-size: .875rem;
	line-height: 1.55;
}

.wfa-sc-empty {
	color: var(--t-muted);
}

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

.wfa-sc-plan {
	margin-top: 1.5rem;
	padding: 1.25rem 1.25rem 1.35rem;
	border: 1px solid var(--t-line);
	background: var(--t-yes-soft);
}

.wfa-sc-plan.is-short {
	background: var(--t-no-soft);
}

.wfa-sc-plan__head {
	margin: 0;
	font-family: var(--t-display);
	font-size: 1.375rem;
	line-height: 1.25;
	text-wrap: balance;
}

.wfa-sc-plan__text {
	margin: .5rem 0 0;
	font-size: .9375rem;
	line-height: 1.55;
	color: var(--t-ink);
}

/* The 180-day window as one strip: ink for days already spent, green
   for the planned trip. */
.wfa-sc-line {
	margin-top: 1.75rem;
}

.wfa-sc-line__track {
	position: relative;
	height: 2.25rem;
	background: var(--t-card);
	box-shadow: inset 0 0 0 1px var(--t-line);
	overflow: hidden;
}

.wfa-sc-line__seg {
	position: absolute;
	top: 0;
	bottom: 0;
	min-width: 2px;
}

.wfa-sc-line__seg.is-stay {
	background: var(--t-ink);
}

.wfa-sc-line__seg.is-plan {
	background: repeating-linear-gradient(135deg, var(--t-yes) 0 3px, #2a7566 3px 6px);
}

.wfa-sc-line__scale {
	position: relative;
	height: 1.4rem;
	margin-top: .3rem;
}

.wfa-sc-line__tick {
	position: absolute;
	top: 0;
	padding-left: .25rem;
	border-left: 1px solid var(--t-line);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--t-muted);
}

.wfa-sc-line__cap {
	margin: .4rem 0 0;
	font-size: .8125rem;
	color: var(--t-muted);
}

.wfa-sc-next {
	margin: 1.5rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--t-line);
	font-size: 1rem;
	line-height: 1.5;
}

.wfa-sc-next__note {
	display: block;
	margin-top: .35rem;
	font-size: .8125rem;
	color: var(--t-muted);
}

.wfa-sc-next__label {
	display: block;
	margin-bottom: .3rem;
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--t-muted);
}

/* ---------- how the rule works ---------- */

.wfa-sc-rules {
	margin-top: clamp(3.5rem, 7vw, 5rem);
	padding-top: clamp(2rem, 4vw, 2.5rem);
	border-top: 1px solid var(--t-ink);
}

.wfa-sc-rules__title {
	margin: 0 0 1.5rem;
	font-family: var(--t-display);
	font-size: clamp(1.75rem, 3.4vw, 2.375rem);
	font-weight: 400;
	line-height: 1.15;
}

.wfa-sc-rules__list {
	display: grid;
	gap: 0;
	margin: 0;
}

.wfa-sc-rule {
	display: grid;
	gap: .4rem 3rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--t-line);
}

@media (min-width: 800px) {
	.wfa-sc-rule {
		grid-template-columns: 14rem minmax(0, 1fr);
	}
}

.wfa-sc-rule dt {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--t-ink);
	padding-top: .2rem;
}

.wfa-sc-rule dd {
	max-width: 44rem;
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--t-ink);
}

.wfa-sc-page a.wfa-sc-cite {
	margin-left: .25rem;
	font-size: .75rem;
	color: var(--t-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- need longer ---------- */

.wfa-sc-longer {
	display: grid;
	gap: 1.5rem 3rem;
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding: clamp(1.75rem, 4vw, 2.75rem);
	background: var(--t-ink);
	color: var(--t-paper);
}

@media (min-width: 900px) {
	.wfa-sc-longer {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
	}
}

.wfa-sc-longer .wfa-tl-eyebrow {
	color: rgba(250, 247, 242, .65);
}

.wfa-sc-longer__title {
	max-width: 28ch;
	margin: 0;
	font-family: var(--t-display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 400;
	line-height: 1.2;
	text-wrap: balance;
}

.wfa-sc-longer__text {
	max-width: 40rem;
	margin: .9rem 0 0;
	font-size: .9375rem;
	line-height: 1.6;
	color: rgba(250, 247, 242, .78);
}

.wfa-sc-longer__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
}

.wfa-sc-page a.wfa-sc-button {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	padding: .8rem 1.5rem;
	background: var(--t-paper);
	color: var(--t-ink);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
}

.wfa-sc-page a.wfa-sc-button:hover {
	background: var(--t-card);
}

.wfa-sc-page a.wfa-sc-textlink {
	padding-bottom: .25rem;
	border-bottom: 1px solid currentColor;
	color: var(--t-paper);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
}

/* ---------- small print ---------- */

.wfa-sc-foot {
	max-width: 46rem;
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--t-line);
	font-size: .8125rem;
	line-height: 1.6;
	color: var(--t-muted);
}

.wfa-sc-foot p {
	margin: 0 0 .75rem;
}

.wfa-sc-foot strong {
	color: var(--t-ink);
}

.wfa-sc-foot a {
	color: var(--t-muted);
}

.wfa-sc-foot__sources {
	margin: 0;
	padding-left: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
	.wfa-tl *,
	.wfa-sc-page * {
		transition: none !important;
	}
}

/* ==========================================================================
   /time-zone-planner/  (added in v1.1.0)
   ========================================================================== */

.wfa-tz__wrap {
	max-width: 76rem;
	padding: clamp(3rem, 7vw, 5rem) 40px clamp(4rem, 9vw, 6rem);
}

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

.wfa-tz-form {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr) auto;
	align-items: end;
	gap: 1.25rem;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border: 1px solid var(--t-line);
	background: var(--t-card);
}

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

	.wfa-tz-form__where {
		grid-column: 1 / -1;
	}
}

.wfa-sc-page .wfa-tz-select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 1.5rem;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	cursor: pointer;
}

.wfa-sc-page .wfa-tz-submit {
	min-height: 2.75rem;
	padding: .6rem 1.5rem;
	border: 0;
	border-radius: 0;
	background: var(--t-ink);
	color: var(--t-paper);
	font-family: inherit;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
}

.wfa-tz-submit[hidden] {
	display: none;
}

.wfa-tz-answer {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.wfa-tz-answer__title {
	margin: 0;
	font-family: var(--t-display);
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -.015em;
	text-wrap: balance;
}

.wfa-tz-tally {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 2rem;
	margin: 1.1rem 0 0;
	padding: 0;
	list-style: none;
	font-size: .9375rem;
	color: var(--t-muted);
}

.wfa-tz-tally li {
	display: inline-flex;
	align-items: baseline;
	gap: .45rem;
	margin: 0;
}

.wfa-tz-tally span {
	font-family: var(--t-display);
	font-size: 1.5rem;
	font-variant-numeric: tabular-nums;
}

.wfa-tz-tally .is-good span { color: var(--t-yes); }
.wfa-tz-tally .is-rough span { color: var(--t-mid); }
.wfa-tz-tally .is-night span { color: var(--t-no); }

/* Rows: who on the left, the day in the middle, a link on the right.
   The hour scale above shares the same columns, so 06:00 on the scale
   sits over 06:00 on every bar. */
.wfa-tz-scale,
.wfa-tz-row {
	display: grid;
	grid-template-columns: 12rem minmax(0, 1fr) 11rem;
	gap: .5rem 2rem;
}

.wfa-tz-scale {
	margin-top: 2rem;
}

.wfa-tz-scale__hours {
	position: relative;
	height: 1.2rem;
}

.wfa-tz-scale__hours span {
	position: absolute;
	top: 0;
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--t-muted);
	transform: translateX(-50%);
	font-variant-numeric: tabular-nums;
}

.wfa-tz-scale__hours span:first-child {
	transform: none;
}

.wfa-tz-scale__hours span:last-child {
	transform: translateX(-100%);
}

.wfa-tz-list {
	margin: .4rem 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--t-ink);
}

.wfa-tz-row {
	align-items: start;
	margin: 0;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--t-line);
}

.wfa-tz-row__who {
	display: flex;
	flex-direction: column;
	gap: .2rem;
	min-width: 0;
}

.wfa-sc-page a.wfa-tz-row__city {
	font-family: var(--t-display);
	font-size: 1.375rem;
	line-height: 1.15;
	color: var(--t-ink);
	text-decoration: none;
}

.wfa-sc-page a.wfa-tz-row__city:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.wfa-tz-row__gap {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--t-muted);
}

.wfa-tz-row__body {
	min-width: 0;
}

.wfa-tz-row__when {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem .75rem;
	margin: 0 0 .7rem;
}

.wfa-tz-row__times {
	font-size: 1.0625rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.wfa-tz-chip.is-good {
	background: var(--t-yes-soft);
	color: var(--t-yes);
}

.wfa-tz-chip.is-rough {
	background: var(--t-mid-soft);
	color: var(--t-mid);
}

.wfa-tz-chip.is-night {
	background: var(--t-no-soft);
	color: var(--t-no);
}

/* The local 24 hours: night hatched dark, early and late shaded, the
   working day laid on top in the verdict's colour. */
.wfa-tz-bar {
	position: relative;
	height: 1.25rem;
	background:
		linear-gradient(90deg,
			#d9d1c3 0, #d9d1c3 25%,
			#e9e2d5 25%, #e9e2d5 29.1667%,
			var(--t-card) 29.1667%, var(--t-card) 83.3333%,
			#e9e2d5 83.3333%, #e9e2d5 95.8333%,
			#d9d1c3 95.8333%, #d9d1c3 100%);
	box-shadow: inset 0 0 0 1px var(--t-line);
}

.wfa-tz-bar__work {
	position: absolute;
	top: 3px;
	bottom: 3px;
	background: var(--t-ink);
}

.wfa-tz-row.is-good .wfa-tz-bar__work { background: var(--t-yes); }
.wfa-tz-row.is-rough .wfa-tz-bar__work { background: var(--t-mid); }
.wfa-tz-row.is-night .wfa-tz-bar__work { background: var(--t-no); }

.wfa-tz-row__note {
	margin: .6rem 0 0;
	font-size: .875rem;
	line-height: 1.5;
	color: var(--t-muted);
}

.wfa-tz-row__change {
	margin: .5rem 0 0;
	font-size: .875rem;
	line-height: 1.5;
}

.wfa-tz-row__change-label {
	margin-right: .4rem;
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--t-mid);
}

.wfa-tz-row__more {
	margin: 0;
	padding-top: .3rem;
	font-size: .8125rem;
	text-align: right;
}

.wfa-sc-page .wfa-tz-row__more a {
	color: var(--t-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wfa-tz-key {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem .6rem;
	margin: 1rem 0 0;
	font-size: .75rem;
	color: var(--t-muted);
}

.wfa-tz-key span {
	display: inline-block;
	width: 1.5rem;
	height: .75rem;
	margin-left: .6rem;
	box-shadow: inset 0 0 0 1px var(--t-line);
}

.wfa-tz-key span:first-child {
	margin-left: 0;
}

.wfa-tz-key__night { background: #d9d1c3; }
.wfa-tz-key__fringe { background: #e9e2d5; }
.wfa-tz-key__work { background: var(--t-ink); }

@media (max-width: 860px) {
	.wfa-tz-scale,
	.wfa-tz-row {
		grid-template-columns: minmax(0, 1fr);
		gap: .6rem;
	}

	.wfa-tz-scale__pad {
		display: none;
	}

	.wfa-tz-scale {
		padding-top: .5rem;
	}

	.wfa-tz-row__who {
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: 1rem;
	}

	.wfa-tz-row__more {
		text-align: left;
		padding-top: 0;
	}
}

/* ==========================================================================
   /tax-day-tracker/  (added in v1.2.0)
   The form and the rules list reuse the Schengen calculator's pieces.
   ========================================================================== */

/* The country across the top of each stay, the two dates under it, so
   the date fields keep their full width in the narrow column. */
.wfa-td-trip {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.wfa-td-trip > .wfa-sc-field:first-child {
	grid-column: 1 / -1;
}

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

.wfa-td-uk {
	margin: 0;
	border: 0;
}

.wfa-td-uk[hidden] {
	display: none;
}

.wfa-td-uk legend {
	float: left;
	width: 100%;
	padding: 0;
}

.wfa-td-uk .wfa-sc-block__hint {
	clear: both;
	padding-top: .5rem;
}

.wfa-td-uk__choices {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	font-size: .9375rem;
}

.wfa-td-uk__choices label {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	cursor: pointer;
}

.wfa-td-uk__choices input {
	accent-color: var(--t-ink);
}

.wfa-td-head {
	margin: 0;
	font-family: var(--t-display);
	font-size: clamp(1.625rem, 3.2vw, 2.25rem);
	line-height: 1.15;
	text-wrap: balance;
}

.wfa-td-empty {
	margin: 0;
	padding: 1.5rem;
	border: 1px dashed var(--t-line);
	font-size: .9375rem;
	line-height: 1.6;
	color: var(--t-muted);
}

.wfa-td-cards {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wfa-td-card {
	margin: 0;
	padding: 1.4rem 0;
	border-bottom: 1px solid var(--t-line);
}

.wfa-td-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1rem;
}

.wfa-td-card__name {
	margin: 0;
	font-family: var(--t-display);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.15;
}

.wfa-td-chip.is-clear {
	background: var(--t-yes-soft);
	color: var(--t-yes);
}

.wfa-td-chip.is-close,
.wfa-td-chip.is-ties,
.wfa-td-chip.is-maybe {
	background: var(--t-mid-soft);
	color: var(--t-mid);
}

.wfa-td-chip.is-resident {
	background: var(--t-no-soft);
	color: var(--t-no);
}

.wfa-td-chip.is-none {
	border: 1px solid var(--t-line);
	color: var(--t-muted);
}

.wfa-td-card__big {
	margin: .75rem 0 0;
	font-size: .9375rem;
	color: var(--t-muted);
}

.wfa-td-card__n {
	margin-right: .15rem;
	font-family: var(--t-display);
	font-size: 2.5rem;
	line-height: 1;
	color: var(--t-ink);
	font-variant-numeric: tabular-nums;
}

.wfa-td-meter {
	position: relative;
	height: .5rem;
	margin-top: .75rem;
	background: var(--t-card);
	box-shadow: inset 0 0 0 1px var(--t-line);
}

.wfa-td-meter__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	background: var(--t-yes);
}

.wfa-td-card.is-close .wfa-td-meter__fill,
.wfa-td-card.is-ties .wfa-td-meter__fill,
.wfa-td-card.is-maybe .wfa-td-meter__fill {
	background: var(--t-mid);
}

.wfa-td-card.is-resident .wfa-td-meter__fill {
	background: var(--t-no);
}

.wfa-td-meter__tick {
	position: absolute;
	top: -.3rem;
	bottom: -.3rem;
	width: 2px;
	margin-left: -1px;
	background: var(--t-ink);
}

.wfa-td-card__says {
	margin: .85rem 0 0;
	font-size: .9375rem;
	line-height: 1.55;
}

.wfa-td-card__cross {
	margin: .6rem 0 0;
	padding: .6rem .8rem;
	background: var(--t-mid-soft);
	color: var(--t-mid);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.5;
}

.wfa-td-card__rule {
	margin: .75rem 0 0;
	font-size: .8125rem;
	line-height: 1.55;
	color: var(--t-muted);
}

.wfa-td-card__rule-label {
	margin-right: .4rem;
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--t-ink);
}
