/*
 * Footer (footer.php): brand column + three link columns, the network/badges row, one small
 * legal line. Dark band; links are white, underlined on hover only (the site's hover style).
 * Social icons: .social in header.css.
 */

.footer {
	background-color: var(--ink);
	color: var(--surface);
	padding: 5.6rem 0 2.4rem;
	font-size: 1.4rem;
}

.footer a {
	color: var(--surface);
	text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
	text-decoration: underline 2px;
	text-underline-offset: 0.18em;
}

.footer a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* Top: brand + link columns ------------------------------------------------------------- */
.footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
	gap: 4rem;
	padding-bottom: 4rem;
}

.footer__logo img {
	display: block;
	width: auto;
	height: 72px;
}

.footer__station {
	margin: 1.2rem 0 1.6rem;
	color: #B8B8B8;
}

.footer__listen {
	display: inline-flex;
	align-items: center;
	padding: 0.6rem 1.4rem;
	border-radius: 50px;
	background: var(--accent-text);
	font-weight: 700;
	transition: background-color 0.2s, color 0.2s;
}

.footer .footer__listen:hover,
.footer .footer__listen:focus-visible {
	background: var(--surface);
	color: var(--accent-text);
	text-decoration: none;
}

.footer .footer__social {
	justify-content: flex-start;
	column-gap: 1.8rem;
	margin: 2.4rem 0 0;
}

.footer__heading {
	margin: 0 0 1.6rem;
	font-family: var(--fontFamilyHeadings);
	font-size: 1.4rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent); /* bright orange on the dark band */
}

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

.footer__links li {
	margin: 0 0 1rem;
}

.footer__links--two {
	columns: 2;
	column-gap: 2.4rem;
}

.footer__links--two li {
	break-inside: avoid;
}

/* Network + badges row -------------------------------------------------------------------- */
.footer__network {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2rem 3.2rem;
	padding: 2.4rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__networkLabel {
	font-size: 1.2rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #B8B8B8;
}

.footer__sister img {
	display: block;
	width: auto;
	height: 32px;
	opacity: 0.85;
	transition: opacity 0.2s;
}

.footer__sister:hover img {
	opacity: 1;
}

.footer__badges {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	margin-left: auto;
}

.footer__award {
	display: block;
	width: auto;
	height: 48px;
}

.footer__espa img {
	display: block;
	width: auto;
	height: 48px;
}

/* Legal line ------------------------------------------------------------------------------- */
.footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.8rem 2rem;
	padding-top: 2rem;
	font-size: 1.2rem;
	color: #B8B8B8;
}

.footer__legal a {
	color: #B8B8B8;
}

.footer__legal a:hover {
	color: var(--surface);
}

.footer__legalLinks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer__credit {
	margin-left: auto;
	margin-right: 5.6rem; /* clear of the fixed back-to-top button at the page bottom */
}

/* Tablet: brand on its own row, the three link columns under it --------------------------- */
@media screen and (max-width: 1023px) {
	.footer__top {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
		gap: 3.2rem 2.4rem;
	}

	.footer__brand {
		grid-column: 1 / -1;
	}

	.footer__badges {
		margin-left: 0;
	}
}

/* Phone: one column; sections in two columns; network row wraps ---------------------------- */
@media screen and (max-width: 599px) {
	.footer {
		padding-top: 4rem;
	}

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

	.footer__top > .footer__col:first-of-type {
		grid-column: 1 / -1;
	}

	.footer__credit {
		margin-left: 0;
		margin-right: 0;
	}

	.footer__espa img {
		height: auto;
		max-width: 100%;
	}
}
