/*
 * Public page chrome the plugin owns: footer, archive empty states,
 * comment-form rhythm, phone nav hit areas, leader login, and wp-login.
 * Theme template parts (Wonder footer columns, 404 copy) are not restyled here.
 */

body:not(.fpc-leader-portal) {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow-x: clip;
}

body:not(.fpc-leader-portal) .wp-site-blocks {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	width: 100%;
}

body:not(.fpc-leader-portal) .wp-site-blocks > main {
	flex: 1 0 auto;
}

body:not(.fpc-leader-portal) .wp-site-blocks > footer {
	margin-top: auto;
}

body.fpc-public-landing .wp-block-post-title,
body.fpc-public-landing .entry-title {
	display: none !important;
}

.fpc-global-footer {
	width: 100%;
	border-top: 1px solid var(--fpc-border);
	background: var(--fpc-canvas);
	color: var(--fpc-text);
	font-family: Inter, sans-serif;
	transition: background-color var(--fpc-transition), border-color var(--fpc-transition), color var(--fpc-transition);
}

.fpc-footer-inner {
	max-width: 64rem;
	margin: 0 auto;
	padding: 32px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
}

.fpc-footer-name {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: var(--fpc-text);
}

.fpc-footer-address {
	color: var(--fpc-text-soft);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
}

.fpc-footer-address p {
	margin: 0;
}

.fpc-footer-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	column-gap: 16px;
	row-gap: 8px;
	width: 100%;
	max-width: 40rem;
	margin: 8px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--fpc-border);
	color: var(--fpc-text-soft);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
}

.fpc-footer-meta__item {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	margin: 0;
}

.fpc-footer-meta .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.fpc-footer-meta__sep {
	color: var(--fpc-text-soft);
	line-height: 1;
}

.fpc-footer-meta a {
	color: var(--fpc-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fpc-footer-meta a:hover {
	color: var(--fpc-accent-fill);
}

.fpc-footer-meta svg {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	color: var(--fpc-text-soft);
}

.fpc-public-empty {
	padding: 32px 16px;
	text-align: center;
	list-style: none;
}

.fpc-public-empty p {
	margin: 0 auto;
	max-width: 65ch;
	color: var(--fpc-text);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
}

.fpc-public-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 24px;
	padding: 8px 24px;
	border-radius: 1rem;
	background: var(--fpc-accent-fill);
	color: var(--fpc-on-fill);
	font-family: Inter, sans-serif;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.5;
	text-decoration: none;
	transition: background-color var(--fpc-transition);
}

.fpc-public-cta:hover {
	background: var(--fpc-accent-fill-hover);
	color: var(--fpc-on-fill);
}

.fpc-public-cta:focus-visible,
.fpc-footer-meta a:focus-visible {
	outline: 2px solid var(--fpc-accent);
	outline-offset: 3px;
}

body:not(.fpc-leader-portal) .comment-notes {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	max-width: 65ch;
}

body:not(.fpc-leader-portal) .comment-notes > span {
	position: static !important;
	display: block !important;
	float: none !important;
	width: auto !important;
	inset: auto !important;
	margin: 0 !important;
	line-height: 1.5;
}

body:not(.fpc-leader-portal) .comment-content,
body:not(.fpc-leader-portal) .comment-body,
body:not(.fpc-leader-portal) .wp-block-comment-content {
	max-width: 65ch;
	line-height: 1.5;
}

body:not(.fpc-leader-portal) .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
}

body:not(.fpc-leader-portal) .comment-form-cookies-consent input[type="checkbox"] {
	width: 24px;
	height: 24px;
	min-width: 24px;
	margin: 0;
	flex: 0 0 24px;
}

body:not(.fpc-leader-portal) .comment-form .form-submit .submit,
body:not(.fpc-leader-portal) .comment-form input[type="submit"] {
	min-height: 48px;
	padding: 8px 24px;
	font-size: 1rem;
}

body:not(.fpc-leader-portal) .wp-block-post-excerpt__more-link,
body:not(.fpc-leader-portal) .wp-block-read-more,
body:not(.fpc-leader-portal) .more-link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	font-size: 1rem;
	line-height: 1.5;
}

body:not(.fpc-leader-portal) .wp-block-search__button {
	min-width: 48px;
	min-height: 48px;
	font-size: 1rem;
}

@media (max-width: 1023px) {
	body:not(.fpc-leader-portal) .wp-block-navigation .wp-block-navigation-item__content,
	body:not(.fpc-leader-portal) .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		min-height: 48px;
		display: inline-flex;
		align-items: center;
		font-size: 1rem;
		line-height: 1.5;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	body:not(.fpc-leader-portal) .wp-block-navigation__responsive-container-open,
	body:not(.fpc-leader-portal) .wp-block-navigation__responsive-container-close {
		min-width: 48px;
		min-height: 48px;
	}

	body:not(.fpc-leader-portal) .wp-block-navigation__responsive-container-open svg,
	body:not(.fpc-leader-portal) .wp-block-navigation__responsive-container-close svg {
		width: 24px;
		height: 24px;
	}
}

html.dark .fpc-footer-meta a:hover {
	color: var(--fpc-accent);
}

@media (prefers-reduced-motion: reduce) {
	.fpc-public-cta,
	.fpc-global-footer {
		transition: none;
	}
}
