/* LaunchDay footer – Apple-style small print, copyright, links and next event.
   Light/dark follows html[data-theme]. Centres on phones and small tablets. */

.site-footer.ld-footer {
	--f-bg: #EDEDF0;
	--f-edge: #E0E0E5;
	--f-ink: var(--launchday-dark, #1D1D1F);
	--f-muted: #636368;
	--f-line: #D2D2D7;
	--f-pill: #FFFFFF;
	--f-blue: var(--launchday-primary, #0071E3);
	--f-live: #34C759;
	--f-live-text: #1E7F37;
	margin: 0;
	padding: 40px 0 34px;
	background: var(--f-bg) !important;
	border-top: 1px solid var(--f-edge);
	color: var(--f-muted);
	font-size: 12.5px;
	line-height: 1.55;
}
html[data-theme="dark"] .site-footer.ld-footer {
	--f-bg: #111113;
	--f-edge: #1F1F22;
	--f-ink: #F5F5F7;
	--f-muted: #A1A1A6;
	--f-line: #2C2C2E;
	--f-pill: #1C1C1E;
	--f-blue: #2997FF;
	--f-live: #30D158;
	--f-live-text: #30D158;
}

.ld-footer__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Wordmark */
.ld-footer .ld-footer__brand { display: inline-block; margin: 0 0 16px; line-height: 0; }
.ld-footer__wm { display: block; width: auto; height: 20px; }
.ld-footer__wm--dark { display: none; }
html[data-theme="dark"] .ld-footer__wm--light { display: none; }
html[data-theme="dark"] .ld-footer__wm--dark { display: block; }

/* Notice */
.ld-footer .ld-footer__notice p { margin: 0 0 10px; max-width: 1080px; font-size: 12.5px; line-height: 1.55; color: var(--f-muted); }
.ld-footer .ld-footer__notice p:last-child { margin-bottom: 0; }
.ld-footer .ld-footer__notice a { color: var(--f-ink) !important; text-decoration: underline !important; }

/* Bottom row */
.ld-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--f-line);
}
.ld-footer .ld-footer__copy { margin: 0; font-size: 12.5px; color: var(--f-muted); white-space: nowrap; }

.ld-footer__links ul { display: flex; flex-wrap: wrap; row-gap: 6px; margin: 0; padding: 0; list-style: none; }
.ld-footer__links li { margin: 0; padding: 0; }
.ld-footer__links li + li { border-left: 1px solid var(--f-line); }
.ld-footer .ld-footer__links a { display: inline-block; padding: 0 12px; font-size: 12.5px; line-height: 1.3; color: var(--f-ink) !important; opacity: .85; text-decoration: none !important; }
.ld-footer__links li:first-child a { padding-left: 0; }
.ld-footer .ld-footer__links a:hover, .ld-footer .ld-footer__links a:focus-visible { opacity: 1; text-decoration: underline !important; }
.ld-footer .ld-footer__links a[aria-current="page"] { opacity: 1; font-weight: 600; }

/* Next event */
.ld-footer .ld-footer__next {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 6px;
	margin-left: auto;
	padding: 7px 14px 7px 12px;
	border-radius: 999px;
	background: var(--f-pill);
	border: 1px solid var(--f-line);
	font-size: 12.5px;
	line-height: 1.35;
	color: var(--f-muted) !important;
	text-decoration: none !important;
	transition: border-color .15s ease;
}
.ld-footer .ld-footer__next:hover, .ld-footer .ld-footer__next:focus-visible { border-color: var(--f-blue); }
.ld-footer .ld-footer__next strong { font-weight: 600; color: var(--f-ink); }
.ld-footer__sep { opacity: .6; }
.ld-footer__dot { flex: 0 0 7px; width: 7px; height: 7px; margin-right: 2px; border-radius: 50%; background: var(--f-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--f-blue) 20%, transparent); }
.ld-footer__next--none .ld-footer__dot { background: var(--f-muted); box-shadow: none; opacity: .6; }
.ld-footer__next--live .ld-footer__dot { background: var(--f-live); box-shadow: 0 0 0 0 color-mix(in srgb, var(--f-live) 55%, transparent); animation: ld-footer-pulse 1.8s ease-out infinite; }
.ld-footer__next--live .ld-footer__next-label { color: var(--f-live-text); font-weight: 600; }
.ld-footer .ld-footer__next--live:hover, .ld-footer .ld-footer__next--live:focus-visible { border-color: var(--f-live); }
@keyframes ld-footer-pulse {
	0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--f-live) 55%, transparent); }
	70%  { box-shadow: 0 0 0 7px color-mix(in srgb, var(--f-live) 0%, transparent); }
	100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--f-live) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .ld-footer__next--live .ld-footer__dot { animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--f-live) 25%, transparent); } }

/* Phones and small tablets: one centred column. Next event first, then links, then ©. */
@media (max-width: 820px) {
	.site-footer.ld-footer { padding: 36px 0 30px; text-align: center; }
	.ld-footer .ld-footer__brand { display: table; margin: 0 auto 16px; }
	.ld-footer .ld-footer__notice p { margin-left: auto; margin-right: auto; max-width: 560px; }
	.ld-footer__bar { flex-direction: column; gap: 16px; margin-top: 20px; padding-top: 20px; }
	.ld-footer .ld-footer__next { order: 1; margin: 0; justify-content: center; max-width: 100%; padding: 10px 18px; border-radius: 18px; text-align: center; }
	.ld-footer__sep { display: none; }
	.ld-footer .ld-footer__next time { flex-basis: 100%; }
	.ld-footer__links { order: 2; }
	.ld-footer__links ul { justify-content: center; }
	.ld-footer .ld-footer__copy { order: 3; }
}
