/*
 * ihomeland.net: site styles.
 *
 * One motif runs through the site: the signboard, a blue panel with a white
 * keyline set inside its edge. It carries page titles, the home hero (where it
 * stands on two posts), calculator results and the closing call to the office.
 *
 * Colours and fonts come from the theme palette (Customizer > Colors and
 * Fonts), so changing them there changes these styles too.
 * Breakpoints: 544, 768, 1024, 1200.
 */

:root {
	--x-blue: var(--global-palette1);
	--x-deep: var(--global-palette2);
	--x-ink: var(--global-palette3);
	--x-text: var(--global-palette4);
	--x-muted: var(--global-palette5);
	--x-pale: var(--global-palette7);
	--x-paper: var(--global-palette8);
	--x-white: var(--global-palette9);
	--x-flag: var(--global-palette10);
	--x-alert: var(--global-palette13);
	--x-display: var(--global-heading-font-family);
	--x-gutter: var(--global-content-edge-padding);
	/* A panel is as wide as the content column; below 1200 it runs to the screen edges. */
	--x-bleed: var(--x-gutter);
	--x-pad: var(--x-gutter);
	--x-key: 12px;
	--x-section: clamp(3.5rem, 7vw, 6.5rem);
	--x-measure: 40rem;
	--x-measure-wide: 44rem;
}

@media (min-width: 1200px) {
	:root {
		--x-bleed: 0px;
		--x-pad: 3rem;
	}
}

@media (max-width: 768px) {
	:root {
		--x-key: 8px;
	}
}

/* ---------- Header ---------- */

.site-top-header-wrap .site-header-row {
	grid-template-columns: minmax(0, 1fr);
}

.site-top-header-wrap .site-header-section-right {
	display: none;
}

.site-top-header-wrap .site-header-item,
.site-top-header-wrap .header-html {
	flex: 1 1 auto;
}

.header-html-inner {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
}

.x-top-phone a,
.mobile-html a {
	font-weight: 700;
	white-space: nowrap;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a {
	transition: color 0.15s;
}

/* "Learning center" points to a section of the home page; it is not the current page there. */
.home .main-navigation .primary-menu-container > ul > li.menu-item-type-custom.current-menu-item > a:not(:hover) {
	color: var(--x-ink);
}

.header-navigation .header-menu-container ul ul.sub-menu {
	border: 1px solid var(--x-pale);
}

/* ---------- The sign: page title, hero, calculator result, call to the office ---------- */

.x-sign,
.page-hero-section .entry-header,
.x-calc__result {
	position: relative;
	background: var(--x-blue);
	color: var(--x-white);
	outline: 2px solid var(--x-white);
	outline-offset: calc(-1 * var(--x-key));
}

.page-hero-section .entry-header {
	margin-inline: calc(-1 * var(--x-bleed));
	padding: 2.75rem var(--x-pad) 2.5rem;
}

.page-hero-section .kadence-breadcrumbs {
	margin: 0 0 0.6rem;
}

.page-hero-section .kadence-breadcrumbs a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

.page-hero-section .entry-title {
	max-width: 22ch;
	overflow-wrap: break-word;
}

/* Text starts close under the title panel (Kadence leaves 4rem / 3rem / 2.5rem); 28px on phones to 40px. */
.entry-hero + .content-area {
	margin-top: clamp(1.75rem, 1rem + 2vw, 2.5rem);
}

.x-sign :is(h1, h2, h3, p) {
	color: inherit;
}

.x-sign .wp-block-button__link,
.x-sign .wp-block-button__link:visited {
	background: var(--x-flag);
	color: var(--x-ink);
	border: 2px solid var(--x-flag);
}

.x-sign .wp-block-button__link:hover {
	background: var(--x-white);
	border-color: var(--x-white);
	color: var(--x-ink);
}

.x-sign .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
.x-sign .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):visited {
	padding: 15px 26px;
	background: transparent;
	border-color: var(--x-white);
	color: var(--x-white);
}

.x-sign .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):hover {
	background: var(--x-white);
	color: var(--x-blue);
}

/* ---------- Home: the sign on its posts ---------- */

.x-hero {
	--x-photo: clamp(13rem, 30vw, 29rem);
	--x-lap: clamp(0rem, calc((100vw - 1200px) * 0.5), 6rem);
	position: relative;
}

.x-hero .x-sign {
	z-index: 2;
	margin: 0 auto;
	padding: clamp(3rem, 6.5vw, 5.75rem) var(--x-pad) clamp(3rem, 6vw, 5.25rem);
}

.x-hero .x-sign::before,
.x-hero .x-sign::after {
	content: "";
	position: absolute;
	top: 100%;
	width: clamp(12px, 1.7vw, 24px);
	height: var(--x-photo);
	background: var(--x-deep);
}

.x-hero .x-sign::before {
	left: 9%;
}

.x-hero .x-sign::after {
	right: 9%;
}

@media (min-width: 1200px) {
	.x-hero .x-sign {
		max-width: var(--global-calc-content-width);
	}
}

.x-hero h1 {
	max-width: 19ch;
	margin: 0 0 1.25rem;
	font-size: clamp(2.3rem, 5.4vw, 4rem);
	line-height: 1.04;
}

.x-hero .x-lead {
	max-width: 38rem;
	margin: 0 0 2rem;
	color: var(--x-white);
}

.x-hero .wp-block-buttons {
	gap: 0.75rem;
}

.single-content .x-sign-photo {
	margin: calc(-1 * var(--x-lap)) 0 0;
}

.x-sign-photo img {
	display: block;
	width: 100%;
	height: calc(var(--x-photo) + var(--x-lap));
	object-fit: cover;
	object-position: 50% 46%;
}

/* ---------- Home: sections ---------- */

.single-content > .x-section {
	margin: 0;
	padding-block: var(--x-section);
}

.x-section > .wp-block-group__inner-container {
	max-width: var(--global-content-width);
	margin-inline: auto;
	padding-inline: var(--x-gutter);
}

.x-section h2:first-child {
	margin-top: 0;
}

.x-tools,
.x-about {
	background: var(--x-paper);
}

.single-content .x-statement {
	max-width: 58rem;
	margin: 0 0 clamp(2.5rem, 5vw, 4rem);
	font-family: var(--x-display);
	font-size: clamp(1.3rem, 2.2vw, 1.75rem);
	font-weight: 600;
	line-height: 1.38;
	color: var(--x-ink);
}

.single-content .wp-block-columns.x-situations {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: 0;
}

.x-situations > .wp-block-column {
	display: flex;
	flex-direction: column;
	padding-inline: clamp(1.25rem, 2.4vw, 2.25rem);
	border-left: 1px solid var(--x-pale);
}

.x-situations > .wp-block-column:first-child {
	padding-left: 0;
	border-left: 0;
}

.x-situations > .wp-block-column:last-child {
	padding-right: 0;
}

.x-situations .wp-block-image {
	margin: 0 0 1.4rem;
}

.x-situations img,
.x-split img,
.x-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.single-content .x-situations h3 {
	margin: 0 0 0.6rem;
}

.x-more {
	margin-bottom: 0;
	font-weight: 600;
}

.x-situations .x-more {
	margin-top: auto;
}

.single-content .wp-block-columns.x-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 5.5vw, 5.5rem);
	align-items: center;
	margin: 0;
}

.x-split .wp-block-image {
	margin: 0;
}

.x-split > .wp-block-column > :last-child {
	margin-bottom: 0;
}

.x-split > .wp-block-column > :first-child {
	margin-top: 0;
}

.single-content .wp-block-columns.x-split--top {
	align-items: start;
}

/* The photo is as tall as the text beside it. */
.single-content .wp-block-columns.x-split--fill {
	align-items: stretch;
}

.x-split--fill .wp-block-image {
	position: relative;
	height: 100%;
	min-height: 20rem;
}

.x-split--fill .wp-block-image img {
	position: absolute;
	inset: 0;
	height: 100%;
	aspect-ratio: auto;
}

.single-content > .wp-block-columns.x-split + .wp-block-columns.x-split {
	margin-top: clamp(3rem, 6vw, 5rem);
}

/* ---------- Text ---------- */

.single-content :where(p, ul, ol, h3, h4) {
	max-width: var(--x-measure);
}

.single-content :where(h2) {
	max-width: var(--x-measure-wide);
}

.single-content h2 {
	margin: 2.75rem 0 1rem;
}

.single-content h3 {
	margin: 2.25rem 0 0.75rem;
}

.single-content > :first-child {
	margin-top: 0;
}

.x-lead {
	max-width: var(--x-measure-wide);
	font-size: 1.1667em;
	line-height: 1.5;
	color: var(--x-ink);
}

.single-content .x-fine {
	max-width: var(--x-measure-wide);
	margin-top: 2.5rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--x-pale);
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--x-muted);
}

.single-content ul.wp-block-list:not([class*="x-"]) {
	padding-left: 1.3rem;
	list-style: square;
}

.single-content ul.wp-block-list:not([class*="x-"]) > li {
	margin-bottom: 0.55rem;
	padding-left: 0.25rem;
}

.single-content ul.wp-block-list:not([class*="x-"]) > li::marker {
	color: var(--x-blue);
}

.single-content .x-photo {
	max-width: var(--x-measure-wide);
	margin: 2rem 0 2.75rem;
}

.single-content .x-photo--wide {
	max-width: none;
}

.single-content > .x-photo:first-child {
	margin-top: 0;
}

.x-photo img {
	aspect-ratio: 16 / 9;
}

.x-photo--wide img {
	aspect-ratio: 3 / 1;
	object-position: 50% 18%;
}

/* Lists that are navigation or data lose the bullets. */
.single-content :is(.x-index, .x-facts, .x-inline, .x-contact, .x-docs, .x-links, .x-checklist, .x-tips) {
	margin-left: 0;
	padding-left: 0;
	list-style: none;
}

/* Index: a typeset list of pages. */
.single-content .x-index {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(2rem, 5.5vw, 5.5rem);
	max-width: none;
	margin-block: 1.75rem 0;
	border-top: 2px solid var(--x-ink);
}

.x-index li {
	padding: 1.15rem 0 1.25rem;
	border-bottom: 1px solid var(--x-pale);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--x-muted);
}

.x-index li a {
	display: block;
	margin-bottom: 0.15rem;
	font-family: var(--x-display);
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--x-ink);
	text-decoration: none;
}

.x-index li a:hover {
	color: var(--x-blue);
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 2px;
}

/* Terms: name on the left, explanation on the right. */
.x-terms > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: minmax(0, 17rem) minmax(0, var(--x-measure));
}

.single-content .x-terms :is(h3, h4) {
	grid-column: 1;
	max-width: none;
	margin: 0;
	padding: 1.1rem clamp(1.5rem, 4vw, 3rem) 1.1rem 0;
	border-top: 1px solid var(--x-pale);
	font-size: 1.15rem;
	line-height: 1.3;
}

.single-content .x-terms p {
	grid-column: 2;
	max-width: none;
	margin: 0;
	padding: 1.1rem 0;
	border-top: 1px solid var(--x-pale);
}

.single-content .x-terms h2 {
	grid-column: 1 / -1;
}

.single-content .x-needs .x-terms {
	margin-top: 2rem;
}

.single-content .x-needs .x-terms :is(h3, p):nth-last-child(-n + 2) {
	border-bottom: 1px solid var(--x-pale);
}

.single-content .x-needs .x-terms h3 {
	font-size: 1.35rem;
}

/* ---------- Guides ---------- */

.primary-sidebar .widget-title {
	margin-bottom: 0.9rem;
}

.primary-sidebar .widget_nav_menu ul {
	margin: 0;
	padding: 0;
	border-top: 2px solid var(--x-ink);
	list-style: none;
}

.primary-sidebar .widget_nav_menu li a {
	display: block;
	padding: 0.7rem 0.75rem 0.7rem 0.85rem;
	border-bottom: 1px solid var(--x-pale);
	border-left: 3px solid transparent;
	text-decoration: none;
	transition: color 0.15s, background-color 0.15s;
}

.primary-sidebar .widget_nav_menu li a:hover {
	background: var(--x-paper);
	color: var(--x-blue);
}

.primary-sidebar .widget_nav_menu li.current-menu-item > a {
	border-left-color: var(--x-blue);
	background: var(--x-paper);
	color: var(--x-blue);
	font-weight: 700;
}

.single-content .x-steps h2 {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 2px solid var(--x-ink);
	font-size: 1.6rem;
}

.x-checklist li {
	position: relative;
	padding: 0.75rem 0 0.75rem 2.5rem;
	border-bottom: 1px solid var(--x-pale);
}

.x-checklist li::before {
	content: "";
	position: absolute;
	top: 0.95rem;
	left: 0;
	width: 1.2rem;
	height: 1.2rem;
	border: 2px solid var(--x-blue);
	border-radius: 2px;
	background: var(--x-white);
}

.x-tips li {
	padding: 1rem 0;
	border-top: 1px solid var(--x-pale);
}

.x-tips li:last-child {
	border-bottom: 1px solid var(--x-pale);
}

.x-tips li strong {
	display: block;
	font-family: var(--x-display);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--x-ink);
}

.single-content .x-docs {
	max-width: var(--x-measure-wide);
	border-top: 2px solid var(--x-ink);
}

.x-docs li {
	position: relative;
	padding: 1rem 0 1.05rem 4rem;
	border-bottom: 1px solid var(--x-pale);
	font-size: 0.95rem;
	color: var(--x-muted);
}

.x-docs li::before {
	content: "PDF";
	position: absolute;
	top: 1.15rem;
	left: 0;
	padding: 0.2rem 0.45rem;
	border: 2px solid var(--x-blue);
	border-radius: 2px;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--x-blue);
}

.x-docs li a {
	display: block;
	font-family: var(--x-display);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.3;
}

/* Glossary */
.single-content .x-az {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem;
	max-width: none;
	margin: 0 0 1rem;
	padding: 0.55rem 0;
	border-bottom: 2px solid var(--x-ink);
	background: var(--x-white);
}

.x-az a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.9rem;
	height: 2.15rem;
	padding: 0 0.3rem;
	border-radius: 3px;
	font-weight: 700;
	text-decoration: none;
}

.x-az a:hover {
	background: var(--x-blue);
	color: var(--x-white);
}

.single-content .x-terms--letter h2 {
	margin: 2.75rem 0 0.75rem;
	font-size: 2.75rem;
	line-height: 1;
	color: var(--x-blue);
	scroll-margin-top: 4.5rem;
}

/* ---------- Company pages ---------- */

.single-content .x-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: none;
	margin-block: clamp(2.5rem, 5vw, 4rem);
	border-block: 2px solid var(--x-ink);
}

.x-facts li {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 0.3rem;
	padding: 1.5rem clamp(1rem, 2.4vw, 2rem);
	border-left: 1px solid var(--x-pale);
	color: var(--x-muted);
}

.x-facts li:first-child {
	padding-left: 0;
	border-left: 0;
}

.x-facts strong {
	font-family: var(--x-display);
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--x-blue);
	overflow-wrap: anywhere;
}

.single-content .x-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	max-width: none;
}

.x-inline li {
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--x-pale);
	border-radius: 3px;
	background: var(--x-paper);
	font-weight: 600;
	color: var(--x-ink);
}

.x-contact {
	margin-block: 1.5rem 2rem;
	border-top: 2px solid var(--x-ink);
}

.x-contact li {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 1rem;
	align-items: baseline;
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--x-pale);
	font-size: 1.2rem;
	color: var(--x-ink);
	overflow-wrap: anywhere;
}

.x-contact strong {
	font-size: 1rem;
	font-weight: 600;
	color: var(--x-muted);
}

.single-content .x-links {
	max-width: none;
	columns: 2;
	column-gap: clamp(2rem, 5.5vw, 5.5rem);
	border-top: 2px solid var(--x-ink);
}

.x-links li {
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--x-pale);
	font-weight: 600;
	break-inside: avoid;
}

.x-table table {
	max-width: 34rem;
	border-collapse: collapse;
}

.x-table th,
.x-table td {
	padding: 0.8rem 1rem;
	border: 1px solid var(--x-pale);
	text-align: left;
}

.x-table thead th {
	border-color: var(--x-ink);
	background: var(--x-ink);
	color: var(--x-white);
	font-weight: 600;
}

.x-table td {
	font-variant-numeric: tabular-nums;
	color: var(--x-ink);
}

/* ---------- Calculators ---------- */

.x-calc {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: clamp(1.5rem, 4.5vw, 4.5rem);
	align-items: start;
	margin-block: 2rem 0;
}

.x-calc__form {
	border-top: 2px solid var(--x-ink);
}

.x-calc__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(8rem, 13rem);
	gap: 0.4rem 1.25rem;
	align-items: center;
	min-width: 0;
	margin: 0;
	padding: 0.7rem 0;
	border: 0;
	border-bottom: 1px solid var(--x-pale);
}

.x-calc__row label,
.x-calc__row legend {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--x-ink);
}

.x-calc__row--choice {
	display: flow-root;
}

.x-calc__row--choice legend {
	float: left;
	padding: 0.1rem 0 0;
}

.x-calc__choices {
	display: grid;
	gap: 0.4rem;
	float: right;
	width: min(13rem, 100%);
}

.x-calc__choices label {
	display: flex;
	gap: 0.5rem;
	align-items: baseline;
	font-weight: 400;
	cursor: pointer;
}

.x-calc__choices input {
	accent-color: var(--x-blue);
}

.x-calc__req {
	color: var(--x-alert);
}

.x-calc__field {
	display: flex;
	align-items: stretch;
	min-width: 0;
	border: 1.5px solid var(--x-muted);
	border-radius: 3px;
	background: var(--x-white);
	overflow: hidden;
}

.x-calc__field:focus-within {
	border-color: var(--x-ink);
	box-shadow: 0 0 0 4px var(--x-flag);
}

.x-calc__field:has([aria-invalid]) {
	border-color: var(--x-alert);
}

.x-calc__unit {
	display: flex;
	align-items: center;
	padding: 0 0.6rem;
	background: var(--x-paper);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--x-muted);
	white-space: nowrap;
}

.x-calc .x-calc__field input[type="text"],
.x-calc .x-calc__field select {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: auto;
	padding: 0.55rem 0.7rem;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	box-shadow: none;
	font: inherit;
	font-variant-numeric: tabular-nums;
	line-height: 1.3;
	color: var(--x-ink);
	/* The ring is drawn on the wrapper (.x-calc__field:focus-within). */
	outline: 0;
}

.x-calc .x-calc__field input[type="text"] {
	text-align: right;
}

.x-calc .x-calc__field input::placeholder {
	color: var(--x-muted);
	font-size: 0.9rem;
	text-align: left;
}

.x-calc__group {
	min-width: 0;
	margin: 0;
	padding: 0 1.1rem;
	border: 0;
	border-left: 3px solid var(--x-blue);
	background: var(--x-paper);
}

.x-calc__group[hidden],
.x-calc__debt[hidden],
.x-calc__table[hidden],
.x-calc__error[hidden],
.x-calc__add[hidden] {
	display: none;
}

.x-calc__group legend,
.x-calc__legend {
	float: left;
	width: 100%;
	margin: 0;
	padding: 1.1rem 0 0.2rem;
	font-family: var(--x-display);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--x-ink);
}

.x-calc__legend {
	float: none;
	padding-top: 1.6rem;
}

.x-calc__group .x-calc__row {
	clear: both;
}

.x-calc__group .x-calc__row:last-child {
	border-bottom: 0;
}

.x-calc__debt {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.95fr);
	gap: 0.5rem;
	align-items: center;
	min-width: 0;
	margin: 0;
	padding: 0.6rem 0;
	border: 0;
	border-bottom: 1px solid var(--x-pale);
}

.x-calc__debt-type {
	font-weight: 600;
	color: var(--x-ink);
}

.x-calc .x-calc__add,
.x-calc .x-calc__add:hover,
.x-calc .x-calc__add:focus {
	padding: 0.8rem 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-weight: 600;
	color: var(--x-blue);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.x-calc .x-calc__add:hover {
	color: var(--x-deep);
}

.x-calc__note,
.x-calc__error {
	max-width: none;
	margin: 0.8rem 0 0;
	font-size: 0.875rem;
	color: var(--x-muted);
}

.x-calc__error {
	font-size: 1rem;
	font-weight: 600;
	color: var(--x-alert);
}

.x-calc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.x-calc .x-calc__reset,
.x-calc .x-calc__reset:focus {
	border: 2px solid var(--x-ink);
	background: transparent;
	color: var(--x-ink);
}

.x-calc .x-calc__reset:hover {
	background: var(--x-ink);
	color: var(--x-white);
}

.x-calc__result {
	position: sticky;
	top: 1.5rem;
	padding: clamp(1.75rem, 3vw, 2.5rem);
}

.x-calc__result p {
	max-width: none;
	margin: 0;
	color: inherit;
}

.x-calc__label {
	font-weight: 600;
}

.x-calc__result .x-calc__value {
	margin: 0.2rem 0 1.25rem;
	font-family: var(--x-display);
	font-size: clamp(2.1rem, 3.6vw, 3rem);
	font-weight: 700;
	line-height: 1.05;
	color: var(--x-flag);
	overflow-wrap: anywhere;
}

.x-calc__rows {
	margin: 0;
}

.x-calc__rows > div {
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.55rem 0;
	border-top: 1px solid color-mix(in srgb, var(--x-white) 30%, transparent);
	font-size: 1rem;
}

.x-calc__rows dt {
	font-weight: 400;
}

.x-calc__rows dd {
	margin: 0;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.x-calc__result .x-calc__resnote {
	margin-top: 1rem;
	font-size: 0.9rem;
	line-height: 1.45;
}

.x-calc__table {
	grid-column: 1 / -1;
	max-height: 36rem;
	border: 1px solid var(--x-pale);
	overflow: auto;
}

.x-calc__table table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
}

.x-calc__table caption {
	padding: 1rem;
	font-family: var(--x-display);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--x-ink);
	text-align: left;
	caption-side: top;
}

.x-calc__table th,
.x-calc__table td {
	padding: 0.5rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--x-pale);
	text-align: right;
	white-space: nowrap;
}

.x-calc__table thead th {
	position: sticky;
	top: 0;
	border-bottom: 0;
	background: var(--x-ink);
	color: var(--x-white);
	font-weight: 600;
}

.x-calc__table th:first-child {
	text-align: left;
}

.x-calc__table tbody th {
	font-weight: 600;
	color: var(--x-ink);
}

.x-calc__table tbody tr:nth-child(even) {
	background: var(--x-paper);
}

.x-calc--compact {
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	margin: 0;
	padding: clamp(1.25rem, 3vw, 2.25rem);
	border: 1px solid var(--x-pale);
	background: var(--x-white);
}

.x-calc--compact .x-calc__result {
	position: static;
}

/* ---------- Footer ---------- */

.site-footer .site-top-footer-wrap .site-footer-row-container-inner {
	background: linear-gradient(to bottom, var(--x-white) 50%, var(--x-ink) 50%);
}

.x-page-contact .site-top-footer-wrap {
	display: none;
}

.x-sign--cta {
	text-align: left;
	margin-inline: calc(-1 * var(--x-bleed));
	padding: clamp(2.25rem, 4.5vw, 3.5rem) var(--x-pad);
}

.x-sign--cta > .wp-block-group__inner-container {
	display: flex;
	gap: 1.5rem 3rem;
	align-items: center;
	justify-content: space-between;
}

.x-sign--cta .x-cta-text {
	max-width: 38rem;
	margin: 0;
	font-family: var(--x-display);
	font-size: clamp(1.3rem, 2.3vw, 1.7rem);
	font-weight: 600;
	line-height: 1.3;
}

.x-sign--cta .wp-block-buttons {
	flex: none;
}

.site-footer .widget_nav_menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .widget_nav_menu li {
	margin: 0 0 0.5rem;
	line-height: 1.4;
}

.site-footer .x-footer-logo {
	margin: 0 0 1.25rem;
}

.site-footer .x-footer-logo img {
	width: 230px;
	height: auto;
}

.site-footer .site-bottom-footer-wrap {
	border-top: 1px solid var(--x-pale);
}

.site-footer .footer-html p {
	margin: 0;
}

.site-footer .x-eho {
	margin: 0;
}

.site-footer .x-eho img {
	display: block;
	width: 62px;
	height: auto;
	margin-left: auto;
}

/* ---------- Focus ---------- */

/* Keyboard focus: a two-tone ring that reads on white and on blue. */
body :is(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--x-ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--x-flag);
}

body .x-calc__field :is(input, select):focus-visible {
	outline: 0;
	box-shadow: none;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1024px) {
	.x-hero .x-sign::before {
		left: 7%;
	}

	.x-hero .x-sign::after {
		right: 7%;
	}

	.x-split--fill .wp-block-image {
		min-height: 0;
	}

	.x-split--fill .wp-block-image img {
		position: static;
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.single-content .wp-block-columns.x-situations {
		grid-template-columns: minmax(0, 1fr);
	}

	.x-situations > .wp-block-column {
		display: grid;
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		column-gap: clamp(1.25rem, 4vw, 2.5rem);
		padding: 1.75rem 0;
		border-top: 1px solid var(--x-pale);
		border-left: 0;
	}

	.x-situations > .wp-block-column:last-child {
		padding-bottom: 0;
	}

	.x-situations .wp-block-image {
		grid-row: 1 / span 3;
		margin: 0;
	}

	.x-situations :is(h3, p) {
		grid-column: 2;
	}

	.single-content .wp-block-columns.x-split {
		grid-template-columns: minmax(0, 1fr);
	}

	.x-calc {
		grid-template-columns: minmax(0, 1fr);
	}

	.x-calc__result {
		position: static;
	}

	.primary-sidebar {
		margin-top: 3rem;
	}
}

@media (max-width: 768px) {
	.single-content .x-index {
		grid-template-columns: minmax(0, 1fr);
	}

	.x-terms > .wp-block-group__inner-container {
		grid-template-columns: minmax(0, 1fr);
	}

	.single-content .x-terms :is(h3, h4),
	.single-content .x-terms p {
		grid-column: 1;
	}

	.single-content .x-terms :is(h3, h4) {
		padding-bottom: 0.3rem;
	}

	.single-content .x-terms p {
		padding-top: 0;
		border-top: 0;
	}

	.single-content .x-facts {
		grid-template-columns: minmax(0, 1fr);
	}

	.x-facts li,
	.x-facts li:first-child {
		padding: 1.1rem 0;
		border-top: 1px solid var(--x-pale);
		border-left: 0;
	}

	.x-facts li:first-child {
		border-top: 0;
	}

	.single-content .x-links {
		columns: 1;
	}

	.x-sign--cta > .wp-block-group__inner-container {
		flex-direction: column;
		align-items: flex-start;
	}

	.x-calc__debt {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.x-top-license {
		display: none;
	}

	.header-html-inner {
		justify-content: flex-end;
	}

	.site-footer .x-eho img {
		margin-left: 0;
	}
}

@media (max-width: 544px) {
	.x-situations > .wp-block-column {
		display: block;
	}

	.x-situations .wp-block-image {
		margin: 0 0 1.2rem;
	}

	.x-calc__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.x-calc__row--choice legend,
	.x-calc__choices {
		float: none;
		width: 100%;
	}

	.x-calc__choices {
		margin-top: 0.5rem;
	}

	.x-contact li {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.1rem;
	}

	.x-hero .wp-block-buttons,
	.x-hero .wp-block-button,
	.x-hero .wp-block-button__link {
		width: 100%;
	}

	.x-calc__rows > div {
		flex-wrap: wrap;
		gap: 0 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.main-navigation .primary-menu-container > ul > li.menu-item > a,
	.primary-sidebar .widget_nav_menu li a {
		transition: none;
	}
}
