/*
 * XO DNA Standard Footer — frontend and editor styles.
 *
 * Colors come from the footer tokens (--color-footer-*), which already
 * switch with light/dark mode. Layout only; no client color scheme.
 */

.xo-footer {
	display: block;
	width: 100%;
	color: var(--color-footer-text);
}

.xo-footer a {
	color: var(--color-footer-link);
	overflow-wrap: anywhere;
}

.xo-footer a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 2px;
}

.xo-footer__columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}

.xo-footer__column {
	min-width: 0;
}

.xo-footer__heading {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
	line-height: 1.3;
	color: inherit;
}

.xo-footer__subheading {
	margin: 1rem 0 0.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: inherit;
}

.xo-footer__subheading:first-of-type {
	margin-top: 0;
}

.xo-footer__org-name {
	margin: 0 0 0.5rem;
	font-weight: 600;
}

.xo-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.xo-footer__list li + li {
	margin-top: 0.25rem;
}

.xo-footer__address {
	font-style: normal;
}

.xo-footer__hours,
.xo-footer__address {
	overflow-wrap: anywhere;
}

.xo-footer__map {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.xo-footer__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.xo-footer__directions,
.xo-footer__map-link {
	margin: 0.75rem 0 0;
}

.xo-footer__map-link:first-child {
	margin-top: 0;
}

.xo-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	font-size: 0.875rem;
}

/* No columns: no divider or gap above the bottom row. */
.xo-footer__bottom:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.xo-footer__copyright {
	margin: 0;
}

.xo-footer__policies ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Separator only between items, so a lone link never dangles one. */
.xo-footer__policies li + li::before {
	content: "\00b7";
	margin-inline: 0.5rem;
}

@media (min-width: 600px) {
	.xo-footer--cols-2 .xo-footer__columns,
	.xo-footer--cols-3 .xo-footer__columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.xo-footer--cols-3 .xo-footer__column--map {
		grid-column: 1 / -1;
	}
}

@media (min-width: 900px) {
	.xo-footer--cols-3 .xo-footer__columns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.xo-footer--cols-3 .xo-footer__column--map {
		grid-column: auto;
	}
}
