/**
 * Event101 - Public homepage shell: replaces default Astra header/footer presentation.
 * Scoped to body.event101-public-marketing (public marketing shortcode pages).
 */

/* --- Hide default Astra chrome on this template --- */
body.event101-public-marketing #masthead,
body.event101-public-marketing .main-header-bar-wrap,
body.event101-public-marketing .ast-mobile-header-wrap,
body.event101-public-marketing #ast-mobile-header,
body.event101-public-marketing .site-footer,
body.event101-public-marketing .ast-footer-copyright,
body.event101-public-marketing .ast-small-footer,
body.event101-public-marketing .ast-footer-social-wrap,
body.event101-public-marketing .footer-adv,
body.event101-public-marketing .ast-builder-grid-row.ast-builder-grid-row-footer,
body.event101-public-marketing .site-header,
body.event101-public-marketing #footer-thankyou,
body.event101-public-marketing .ast-footer-thankyou {
	display: none !important;
}

body.event101-public-marketing .site-content {
	padding-top: 0;
}

/* Extra space below the admin bar so the marketing shell does not feel cramped. */
body.admin-bar.event101-public-marketing .site-content {
	padding-top: 0.5rem;
}

body.event101-public-marketing .entry-header,
body.event101-public-marketing .entry-title,
body.event101-public-marketing h1.entry-title,
body.event101-public-marketing .page-header,
body.event101-public-marketing .page-title,
body.event101-public-marketing .ast-archive-description,
body.event101-public-marketing .wp-block-post-title {
	display: none !important;
}

/* Sticky shell below WordPress admin bar (front-end) */
body.admin-bar.event101-public-marketing .e101-ph-shell-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar.event101-public-marketing .e101-ph-shell-header {
		top: 46px;
	}
}

/* --- Header shell --- */
.e101-ph-shell-header {
	--e101-shell-slate: #111827;
	--e101-shell-accent: #58e28a;
	position: sticky;
	top: 0;
	z-index: 100001;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid #e5e7eb;
	box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

.e101-ph-shell-header__bar {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.8rem 1.15rem;
}

.e101-ph-shell-header__inner {
	display: flex;
	align-items: center;
	gap: 0.75rem 1rem;
	flex-wrap: nowrap;
}

.e101-ph-shell-header__brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
	flex-shrink: 0;
}

.e101-ph-shell-header__logo img {
	display: block;
	height: 34px;
	width: auto;
}

.e101-ph-shell-header__wordmark {
	font-weight: 800;
	font-size: 1.1rem;
	color: var(--e101-shell-slate);
	text-decoration: none;
	letter-spacing: 0.02em;
}

.e101-ph-shell-header__tag {
	display: none;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b7280;
	white-space: nowrap;
}

@media (min-width: 1100px) {
	.e101-ph-shell-header__tag {
		display: inline;
		padding-left: 0.5rem;
		border-left: 1px solid #e5e7eb;
		margin-left: 0.15rem;
	}
}

.e101-ph-shell-plan {
	display: none;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.28rem 0.55rem;
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	color: #6b7280;
	white-space: nowrap;
	flex-shrink: 0;
}

@media (min-width: 720px) {
	.e101-ph-shell-plan {
		display: inline-flex;
		align-items: center;
	}
}

/* DOM hook for future plan label; hidden until a label is provided via filter. */
.e101-ph-shell-plan--empty {
	display: none !important;
}

.e101-ph-shell-account {
	position: relative;
}

.e101-ph-shell-account__summary {
	list-style: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
}

.e101-ph-shell-account__summary::-webkit-details-marker {
	display: none;
}

.e101-ph-shell-account__summary::marker {
	content: "";
}

.e101-ph-shell-account__summary:focus-visible {
	outline: 2px solid var(--e101-shell-accent);
	outline-offset: 2px;
	border-radius: 999px;
}

.e101-ph-shell-avatar--summary,
.e101-ph-shell-iconbtn--summary {
	pointer-events: none;
}

.e101-ph-shell-account__panel {
	position: absolute;
	top: calc(100% + 0.35rem);
	right: 0;
	min-width: 11.5rem;
	padding: 0.4rem;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: #fff;
	box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	z-index: 5;
}

.e101-ph-shell-account__link {
	display: block;
	padding: 0.5rem 0.65rem;
	border-radius: 8px;
	font-size: 0.88rem;
	font-weight: 600;
	color: #1f2937;
	text-decoration: none;
}

.e101-ph-shell-account__link:hover {
	background: #f3f4f6;
}

.e101-ph-shell-account__link:focus-visible {
	outline: 2px solid var(--e101-shell-accent);
	outline-offset: 1px;
}

.e101-ph-shell-account__placeholder {
	display: block;
	padding: 0.45rem 0.65rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: #9ca3af;
	border-radius: 8px;
}

.e101-ph-shell-account__placeholder--block {
	padding-left: 0.75rem;
	padding-right: 0.75rem;
}

.e101-ph-shell-drawer__account-slots {
	margin: 0.25rem 0 0.5rem;
	padding: 0 0.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.e101-ph-shell-header__nav--desktop {
	display: none;
	flex: 1 1 0;
	justify-content: center;
	align-items: center;
	min-width: 0;
	overflow-x: visible;
	overflow-y: visible;
}

@media (min-width: 1024px) {
	.e101-ph-shell-header__nav--desktop {
		display: flex;
	}
}

.e101-ph-shell-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.2rem 0.08rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
	row-gap: 0.35rem;
}

@media (min-width: 1200px) {
	.e101-ph-shell-nav {
		flex-wrap: nowrap;
		gap: 0.06rem 0.1rem;
		row-gap: 0;
	}
}

.e101-ph-shell-nav li {
	margin: 0;
	flex-shrink: 0;
}

.e101-ph-shell-nav__link {
	display: inline-flex;
	align-items: center;
	padding: 0.34rem 0.46rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	color: #374151;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

@media (min-width: 1024px) and (max-width: 1199px) {
	.e101-ph-shell-nav__link {
		padding: 0.3rem 0.38rem;
		font-size: 0.68rem;
	}
}

@media (min-width: 1280px) {
	.e101-ph-shell-nav__link {
		padding: 0.36rem 0.54rem;
		font-size: 0.76rem;
	}
}

@media (min-width: 1440px) {
	.e101-ph-shell-nav__link {
		padding: 0.38rem 0.58rem;
		font-size: 0.8rem;
	}
}

.e101-ph-shell-nav__link:hover {
	background: #f3f4f6;
	color: var(--e101-shell-slate);
}

.e101-ph-shell-nav__link:focus-visible {
	outline: 2px solid var(--e101-shell-accent);
	outline-offset: 2px;
}

.e101-ph-shell-nav__link--unavailable {
	cursor: default;
	color: #9ca3af;
}

.e101-ph-shell-footer__link-unavailable {
	color: #9ca3af;
	cursor: default;
}

.e101-ph-shell-header__actions {
	display: none;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

@media (min-width: 1024px) {
	.e101-ph-shell-header__actions {
		display: flex;
	}
}

.e101-ph-shell-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}

.e101-ph-shell-btn--ghost {
	background: transparent;
	color: #374151;
	border-color: #e5e7eb;
}

.e101-ph-shell-btn--ghost:hover {
	background: #f9fafb;
}

.e101-ph-shell-btn--primary {
	background: var(--e101-shell-accent);
	color: var(--e101-shell-slate);
	border-color: rgba(17, 24, 39, 0.06);
}

.e101-ph-shell-btn--primary:hover {
	filter: brightness(0.97);
}

.e101-ph-shell-btn--block {
	width: 100%;
}

.e101-ph-shell-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #374151;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.e101-ph-shell-iconbtn:hover {
	border-color: #d1d5db;
	background: #f9fafb;
}

.e101-ph-shell-iconbtn:focus-visible,
.e101-ph-shell-btn:focus-visible,
.e101-ph-shell-avatar:focus-visible,
.e101-ph-shell-menu:focus-visible {
	outline: 2px solid var(--e101-shell-accent);
	outline-offset: 2px;
}

.e101-ph-shell-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background: linear-gradient(145deg, #1f2937, #111827);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	text-decoration: none;
	letter-spacing: 0.02em;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.e101-ph-shell-avatar__txt {
	line-height: 1;
}

.e101-ph-shell-menu {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	width: 2.65rem;
	height: 2.65rem;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #374151;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.e101-ph-shell-menu:hover {
	background: #f9fafb;
}

@media (min-width: 1024px) {
	.e101-ph-shell-menu {
		display: none;
	}
}

/* Mobile drawer */
.e101-ph-shell-drawer {
	border-top: 1px solid #e5e7eb;
	background: #fff;
	padding: 0.75rem 1rem 1rem;
}

.e101-ph-shell-drawer[hidden] {
	display: none !important;
}

.e101-ph-shell-drawer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.e101-ph-shell-drawer__list a {
	display: block;
	padding: 0.65rem 0.75rem;
	border-radius: 10px;
	font-weight: 600;
	color: #1f2937;
	text-decoration: none;
}

.e101-ph-shell-drawer__list a:hover {
	background: #f3f4f6;
}

.e101-ph-shell-drawer__actions {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

@media (min-width: 1024px) {
	.e101-ph-shell-drawer {
		display: none !important;
	}
}

/* --- Footer shell --- */
.e101-ph-shell-footer {
	background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
	border-top: 1px solid #e5e7eb;
	margin-top: 0;
	padding: 2.5rem 1.25rem 2rem;
	color: #111827;
}

.e101-ph-shell-footer__inner {
	max-width: 1160px;
	margin: 0 auto;
}

.e101-ph-shell-footer__brand {
	margin-bottom: 1.75rem;
}

.e101-ph-shell-footer__logo img {
	height: 32px;
	width: auto;
	display: block;
}

.e101-ph-shell-footer__wordmark {
	font-weight: 800;
	font-size: 1.15rem;
	color: #111827;
	text-decoration: none;
}

.e101-ph-shell-footer__tagline {
	margin: 0.5rem 0 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: #4b5563;
	max-width: 36em;
}

.e101-ph-shell-footer__cols {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.e101-ph-shell-footer__cols {
		grid-template-columns: repeat(3, 1fr);
	}
}

.e101-ph-shell-footer__h {
	margin: 0 0 0.65rem;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #6b7280;
}

.e101-ph-shell-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.e101-ph-shell-footer__links a {
	color: #374151;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
}

.e101-ph-shell-footer__links a:hover {
	color: #111827;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.e101-ph-shell-footer__copy {
	margin: 2rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid #e5e7eb;
	font-size: 0.85rem;
	color: #6b7280;
}
