/*
 * Aircomfort Trøndelag – site CSS (Khaki – site).
 */

/*
 * Footer bar (2026-11-17): Facebook left, copyright + Personvernerklæring centred,
 * "Hosting og vedlikehold av Khaki Media" right.
 * Theme setting: Uncode footer position "right" (icon cell first in the markup).
 * The footer text holds two spans: .act-footer__copy and .act-footer__credit.
 *
 * ≥ 1240px: one line, the copyright centred on the page.
 * 960–1239px: Facebook and the credit on one line, the copyright centred below
 *             (the three don't fit on one line with the copyright exactly centred).
 * < 960px: the theme's own stacked footer.
 */
.footer-last .act-footer__copy,
.footer-last .act-footer__credit {
	display: block;
}

/* Phones and tablets: the theme gives the footer text no side margin (its padding reset is
   !important); 16px like the rest. */
@media (max-width: 959px) {
	.footer-last .site-info {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
}

@media (min-width: 960px) {
	.footer-last > .row-parent {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"fb credit"
			"copy copy";
		align-items: center;
		column-gap: 24px;
		row-gap: 12px;
		/* The theme's cell padding, moved to the bar so all three line up. !important because
		   the row carries Uncode's no-*-padding utility classes, which are !important.
		   76px at the sides keeps the Facebook icon clear of the cookie-settings button
		   (fixed bottom-left, 20–60px), and the same on the right keeps the copyright centred. */
		padding: 27px 76px !important;
	}

	.footer-last > .row-parent > .uncell:not(.site-info) {
		grid-area: fb;
		display: flex;
		align-items: center;
		width: auto;
		padding: 0;
		justify-self: start;
	}

	.footer-last > .row-parent > .site-info,
	.footer-last > .row-parent > .site-info > p {
		display: contents;
	}

	.footer-last .act-footer__copy {
		grid-area: copy;
		text-align: center;
	}

	.footer-last .act-footer__credit {
		grid-area: credit;
		justify-self: end;
		text-align: right;
		white-space: nowrap;
	}
}

@media (min-width: 1240px) {
	.footer-last > .row-parent {
		grid-template-columns: 1fr auto 1fr;
		grid-template-areas: "fb copy credit";
	}
}
