/**
 * Thoughts About God lead-page shell.
 *
 * This stylesheet controls the dedicated header, page canvas, footer, and
 * isolation from the legacy article template. It loads after
 * tag-lead-magnets.css.
 */

:root {
	--tag-shell-navy: #15384f;
	--tag-shell-navy-deep: #0d293b;
	--tag-shell-paper: #ffffff;
	--tag-shell-canvas: #f7f6f2;
	--tag-shell-border: #d9deda;
	--tag-shell-muted: #617078;
	--tag-shell-max: 1120px;
}

html {
	scroll-behavior: smooth;
}

body.tag-lead-shell,
body.tag-lead-magnet-page {
	background: var(--tag-shell-canvas);
	color: #243139;
	margin: 0;
	min-width: 320px;
	padding: 0;
}

body.tag-lead-magnet-page.admin-bar .tag-lead-site-header {
	top: 32px;
}

.tag-lead-site,
.tag-lead-main {
	margin: 0;
	max-width: none;
	min-width: 0;
	padding: 0;
	width: 100%;
}

.tag-lead-main {
	flex: 1 0 auto;
	overflow: hidden;
}

/* Accessible skip link independent of the parent theme. */
.tag-lead-skip-link {
	background: #ffffff;
	border: 2px solid var(--tag-shell-navy);
	color: var(--tag-shell-navy);
	font-size: 0.95rem;
	font-weight: 700;
	left: 16px;
	padding: 10px 14px;
	position: fixed;
	top: -80px;
	z-index: 100000;
}

.tag-lead-skip-link:focus {
	top: 16px;
}

/* Focused ministry header. */
.tag-lead-site-header {
	background: var(--tag-shell-navy-deep);
	border-bottom: 4px solid #b98a43;
	color: #ffffff;
	position: relative;
	z-index: 50;
}

.tag-lead-site-header__inner {
	align-items: center;
	display: flex;
	gap: 32px;
	justify-content: space-between;
	margin: 0 auto;
	min-height: 78px;
	padding: 12px 24px;
	width: min(100%, calc(var(--tag-shell-max) + 48px));
}

.tag-lead-brand {
	align-items: center;
	color: #ffffff;
	display: inline-flex;
	flex: 0 1 auto;
	line-height: 1;
	min-width: 0;
	text-decoration: none;
}

.tag-lead-brand__logo {
	display: block;
	height: 48px;
	max-width: 250px;
	object-fit: contain;
	object-position: left center;
	width: auto;
}

.tag-lead-brand__name {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.28rem, 2.4vw, 1.65rem);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.tag-lead-site-header__context {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 20px;
}

.tag-lead-site-header__label {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tag-lead-site-header__home {
	align-items: center;
	border-left: 1px solid rgba(255, 255, 255, 0.24);
	color: #ffffff;
	display: inline-flex;
	font-size: 0.94rem;
	font-weight: 700;
	gap: 8px;
	padding: 4px 0 4px 20px;
	text-decoration: none;
}

.tag-lead-site-header__home:hover,
.tag-lead-site-header__home:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

/* Page content occupies the full shell, not the old 50rem article wrapper. */
.tag-lead-main > .tag-lead-page {
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

/* Focused footer with a stable two-row structure. */
.tag-lead-site-footer {
	background: var(--tag-shell-navy-deep);
	color: rgba(255, 255, 255, 0.88);
	flex: 0 0 auto;
}

.tag-lead-site-footer__inner {
	align-items: flex-start;
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(260px, 1fr) auto;
	margin: 0 auto;
	padding: 40px 24px 34px;
	width: min(100%, calc(var(--tag-shell-max) + 48px));
}

.tag-lead-site-footer__identity {
	max-width: 540px;
}

.tag-lead-site-footer__name {
	color: #ffffff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 8px;
}

.tag-lead-site-footer__description {
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.94rem;
	line-height: 1.6;
	margin: 0;
}

.tag-lead-site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	justify-content: flex-end;
	padding-top: 5px;
}

.tag-lead-site-footer__links a {
	color: #ffffff;
	font-size: 0.94rem;
	font-weight: 650;
	text-decoration: none;
}

.tag-lead-site-footer__links a:hover,
.tag-lead-site-footer__links a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

.tag-lead-site-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tag-lead-site-footer__legal-inner {
	margin: 0 auto;
	padding: 18px 24px 20px;
	width: min(100%, calc(var(--tag-shell-max) + 48px));
}

.tag-lead-site-footer__legal p {
	color: rgba(255, 255, 255, 0.58);
	font-size: 0.82rem;
	margin: 0;
}

/* Defensive removal of legacy or injected elements. */
body.tag-lead-magnet-page .entry-header,
body.tag-lead-magnet-page .page-header,
body.tag-lead-magnet-page .widget-area,
body.tag-lead-magnet-page aside.sidebar,
body.tag-lead-magnet-page .tag-devotional-popup,
body.tag-lead-magnet-page .swsocial-share,
body.tag-lead-magnet-page .smartersweb-social-share,
body.tag-lead-magnet-page .sharedaddy,
body.tag-lead-magnet-page .jp-relatedposts,
body.tag-lead-magnet-page .related-posts,
body.tag-lead-magnet-page .post-navigation,
body.tag-lead-magnet-page .comments-area {
	display: none !important;
}

@media (max-width: 782px) {
	body.tag-lead-magnet-page.admin-bar .tag-lead-site-header {
		top: 46px;
	}
}

@media (max-width: 720px) {
	.tag-lead-site-header__inner {
		gap: 18px;
		min-height: 70px;
		padding: 10px 18px;
	}

	.tag-lead-brand__logo {
		height: 42px;
		max-width: 190px;
	}

	.tag-lead-site-header__label {
		display: none;
	}

	.tag-lead-site-header__home {
		border-left: 0;
		font-size: 0.88rem;
		padding-left: 0;
	}

	.tag-lead-site-footer__inner {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 34px 20px 28px;
	}

	.tag-lead-site-footer__links {
		justify-content: flex-start;
	}

	.tag-lead-site-footer__legal-inner {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media (max-width: 480px) {
	.tag-lead-site-header__home span[aria-hidden="true"] {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
