/**
 * Footer navigation widget (.op-footer-nav)
 * Two vertical columns on tablet and desktop.
 */

.site-footer .op-footer-nav {
	text-align: left;
}

.site-footer .op-footer-nav__title {
	margin: 0 0 0.85rem;
	padding: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
}

.site-footer .widget_text .op-footer-nav__title {
	margin-top: 0;
}

.site-footer .op-footer-nav__grid {
	display: block;
}

.site-footer .op-footer-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer .op-footer-nav__list li {
	margin: 0;
	padding: 0;
	border: none !important;
	line-height: 1.35;
}

.site-footer .op-footer-nav__list li::before {
	content: none !important;
	display: none !important;
}

.site-footer .op-footer-nav__list a {
	display: block;
	padding: 0.32rem 0;
	color: #fff;
	text-decoration: none;
	opacity: 0.92;
	line-height: 1.35;
	transition: opacity 0.2s ease;
}

.site-footer .op-footer-nav__list a:hover,
.site-footer .op-footer-nav__list a:focus {
	opacity: 1;
	text-decoration: underline;
}

/* Tablet + desktop */
@media screen and (min-width: 768px) {
	/* Preferred markup: two <ul> inside .op-footer-nav__grid */
	.site-footer .op-footer-nav__grid {
		display: flex;
		flex-wrap: nowrap;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 0 3rem;
	}

	.site-footer .op-footer-nav__grid .op-footer-nav__list {
		flex: 0 1 auto;
		min-width: 0;
	}

	.site-footer .op-footer-nav__grid .op-footer-nav__list:first-child a {
		white-space: nowrap;
	}

	.site-footer .op-footer-nav__grid .op-footer-nav__list:last-child a {
		white-space: normal;
	}

	/* Fallback: single <ul> — fill first column top-to-bottom, then second */
	.site-footer .op-footer-nav > .op-footer-nav__list {
		display: grid;
		grid-auto-flow: column;
		grid-template-columns: max-content max-content;
		grid-template-rows: repeat(5, auto);
		column-gap: 3rem;
		row-gap: 0;
		width: fit-content;
		max-width: 100%;
	}

	.site-footer .op-footer-nav > .op-footer-nav__list a {
		white-space: nowrap;
	}

	.site-footer .op-footer-nav > .op-footer-nav__list li:nth-child(n + 6) a {
		white-space: normal;
		max-width: 14rem;
	}
}

@media screen and (min-width: 992px) {
	.site-footer .op-footer-nav__grid {
		gap: 0 3.5rem;
	}

	.site-footer .op-footer-nav > .op-footer-nav__list {
		column-gap: 3.5rem;
	}
}
