/**
 * Universal footer — standalone styling for the Archents footer when it is
 * rendered outside the agentic-midnight theme (the DEXA microsite on blog 2).
 *
 * The markup comes from parts/footer.html, which is authored as WordPress
 * blocks, so it carries wp-block-* classes. Blog 2 does not load the block
 * library or the theme's design tokens, so everything those classes need is
 * restated here and scoped to .am-universal-footer. Nothing in this file may
 * match outside that wrapper.
 *
 * Colours are the "sapphire" skin, which is the one the main site ships.
 */

.am-universal-footer {
	--amf-bg: #050D18;
	--amf-border: rgba(78, 143, 223, 0.3);
	--amf-text: #C4D4EC;
	--amf-muted: #8FA1C0;
	--amf-eyebrow: #8FBFF5;

	background: var(--amf-bg);
	border-top: 1px solid var(--amf-border);
	color: var(--amf-text);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	position: relative;
	z-index: 1;
}

.am-universal-footer *,
.am-universal-footer *::before,
.am-universal-footer *::after {
	box-sizing: border-box;
}

.am-universal-footer .am-footer {
	background: transparent;
	border: 0;
	margin: 0;
	padding: 4rem clamp(1rem, 4vw, 2.5rem) 2rem;
}

.am-universal-footer .alignwide {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

/* Grid rather than the block editor's flex columns: the brand column is wider,
   the four link columns share what's left, and nothing depends on the
   flex-basis inline styles the block markup carries. */
.am-universal-footer .wp-block-columns {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
	gap: 3rem;
	align-items: start;
	margin: 0;
}

.am-universal-footer .wp-block-column {
	min-width: 0;
	flex-basis: auto !important;
}

.am-universal-footer p {
	margin: 0 0 0.75rem;
	color: var(--amf-text);
}

.am-universal-footer p:last-child {
	margin-bottom: 0;
}

.am-universal-footer a {
	color: var(--amf-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}

.am-universal-footer a:hover,
.am-universal-footer a:focus {
	color: #ffffff;
}

.am-universal-footer img {
	max-width: 100%;
	height: auto;
}

.am-universal-footer .am-footer-heading {
	font-family: 'Space Grotesk', 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--amf-eyebrow);
	margin: 0 0 1rem;
}

.am-universal-footer .am-footer-fine {
	color: var(--amf-muted);
	font-size: 0.85rem;
	line-height: 1.75;
}

.am-universal-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.am-universal-footer li {
	margin: 0;
	padding: 0;
	font-size: 0.9rem;
}

.am-universal-footer li::before,
.am-universal-footer li::marker {
	content: none;
}

.am-universal-footer hr.am-divider {
	border: 0;
	border-top: 1px solid var(--amf-border);
	height: 0;
	opacity: 1;
	margin: 2.5rem 0 1.5rem;
	width: 100%;
}

/* Bottom row: copyright left, social right. */
.am-universal-footer .am-footer > .wp-block-group > .wp-block-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem 1.5rem;
}

.am-universal-footer .am-footer > .wp-block-group > .wp-block-group p {
	margin: 0;
}

/* 781px is where the core columns block stacks, so the microsite footer
   reflows at exactly the same width as the one on the main site. */
@media (max-width: 781px) {
	.am-universal-footer .wp-block-columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.25rem;
	}

	.am-universal-footer .am-footer {
		padding-top: 3rem;
	}
}
