/*
 * Thai Nomad Life footer, "Lagoon & Mango". Loads on every page. Tokens: tokens.css.
 * Structure comes from the Blocksy footer builder:
 *   middle row = wordmark (Footer Widget Area 1); Footer Widget Area 2 is empty since 3 Nov 2026
 *   bottom row = menu "Footer links" (Disclaimer, Terms of Use, Privacy Policy) · copyright
 * Blocksy prints its footer styles inline after this file, so the selectors start with "[data-footer] #footer".
 */

[data-footer] #footer.ct-footer {
	background: var(--tnl-pine);
	color: var(--tnl-on-dark);
	font-family: var(--tnl-text);
	font-size: 14px;
	line-height: 1.6;
	--theme-text-color: var(--tnl-on-dark);
	--theme-link-initial-color: var(--tnl-on-dark);
	--theme-link-hover-color: var(--tnl-lagoon-light);
}
[data-footer] #footer.ct-footer [data-row] {
	background: transparent;
	border: 0;
}
[data-footer] #footer.ct-footer p { margin: 0; }

/* Middle row: wordmark */
[data-footer] #footer.ct-footer [data-row="middle"] > .ct-container {
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: 40px;
	row-gap: 12px;
	padding-block: 48px 28px;
	border: 0;
}
[data-footer] #footer [data-column="widget-area-2"] {
	align-items: flex-end;
	text-align: right;
}
[data-footer] #footer .ct-widget { margin: 0; }
[data-footer] #footer .tnl-footer-wordmark {
	font-family: var(--tnl-display);
	font-style: italic;
	font-weight: 500;
	font-size: 22px;
	line-height: 1.2;
}
[data-footer] #footer .tnl-footer-wordmark a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--tnl-white);
	text-decoration: none;
}
[data-footer] #footer .tnl-footer-note {
	color: var(--tnl-on-dark);
	font-size: 14px;
}

/* Bottom row: hairline, legal links left, copyright right */
[data-footer] #footer.ct-footer [data-row="bottom"] > .ct-container {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 24px;
	row-gap: 4px;
	padding-block: 12px 28px;
	border: 0;
	border-top: 1px solid var(--tnl-line-dark);
}
[data-footer] #footer [data-id="menu"] { --menu-items-spacing: 24px; }
/* Blocksy pulls the list out by half the item spacing; our links have no side padding, so keep it flush. */
[data-footer] #footer [data-id="menu"] > ul { margin: 0; column-gap: 24px; }
[data-footer] #footer [data-id="menu"] .ct-menu-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	font-family: var(--tnl-text);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--tnl-on-dark);
	text-decoration: underline;
	text-decoration-color: var(--tnl-lagoon);
	text-underline-offset: 3px;
}
[data-footer] #footer [data-id="menu"] .ct-menu-link:hover {
	color: var(--tnl-lagoon-light);
	text-decoration-color: currentColor;
}
[data-footer] #footer [data-column="copyright"] {
	align-items: flex-end;
	text-align: right;
}
[data-footer] #footer .ct-footer-copyright {
	color: var(--tnl-on-dark-muted);
	font-size: 14px;
}

/* Focus on dark: lagoon-light ring + dark halo, as in the header */
[data-footer] #footer :where(a, button):focus-visible {
	outline: 3px solid var(--tnl-lagoon-light);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px rgba(var(--tnl-shade), .55);
	border-radius: 6px;
}

/* Tablet and phone: one column, left-aligned */
@media (max-width: 999.98px) {
	[data-footer] #footer.ct-footer [data-row="middle"] > .ct-container {
		grid-template-columns: minmax(0, 1fr);
		padding-block: 40px 20px;
	}
	[data-footer] #footer.ct-footer [data-row="bottom"] > .ct-container {
		grid-template-columns: minmax(0, 1fr);
		padding-block: 8px 96px; /* the last line clears the fixed cookie button (bottom left) */
	}
	[data-footer] #footer [data-column="widget-area-2"],
	[data-footer] #footer [data-column="copyright"] {
		align-items: flex-start;
		text-align: left;
	}
}
