/* Site-wide boxed layout — wider centered shell (from home page) */

/* Full-viewport performance photo — visible in side gutters, darkened for legibility */
#site_backdrop {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-color: #250d0b;
}

#site_backdrop::before {
	content: '';
	position: absolute;
	inset: -12px;
	background-image: var(--backdrop-image, none);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	filter: blur(1.5px) brightness(0.42);
	transform: scale(1.03);
}

#site_backdrop::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		165deg,
		rgba(37, 13, 11, 0.72) 0%,
		rgba(18, 5, 4, 0.84) 48%,
		rgba(37, 13, 11, 0.78) 100%
	);
}

#templatemo_container {
	width: min(calc(100% - 1.5rem), 1200px);
	max-width: 1200px;
}

#templatemo_banner {
	width: 100%;
	background-size: 100% 100%;
	background-position: center;
}

/* Imperial oriental footer — full container width */
#templatemo_footer {
	clear: both;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 1.35rem 1.25rem 1.15rem;
	text-align: center;
	color: rgba(248, 244, 236, 0.88);
	background: linear-gradient(165deg, rgba(58, 22, 18, 0.97), rgba(28, 10, 8, 0.99));
	border-top: 1px solid rgba(212, 168, 75, 0.42);
	box-shadow:
		inset 0 1px 0 rgba(255, 229, 102, 0.08),
		0 -4px 20px rgba(0, 0, 0, 0.25);
	position: relative;
}

#templatemo_footer::before {
	content: '';
	position: absolute;
	inset: 8px 10px;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(212, 168, 75, 0.7), rgba(212, 168, 75, 0.7)),
		linear-gradient(rgba(212, 168, 75, 0.7), rgba(212, 168, 75, 0.7)),
		linear-gradient(rgba(212, 168, 75, 0.7), rgba(212, 168, 75, 0.7)),
		linear-gradient(rgba(212, 168, 75, 0.7), rgba(212, 168, 75, 0.7)),
		linear-gradient(rgba(212, 168, 75, 0.7), rgba(212, 168, 75, 0.7)),
		linear-gradient(rgba(212, 168, 75, 0.7), rgba(212, 168, 75, 0.7)),
		linear-gradient(rgba(212, 168, 75, 0.7), rgba(212, 168, 75, 0.7)),
		linear-gradient(rgba(212, 168, 75, 0.7), rgba(212, 168, 75, 0.7));
	background-size:
		28px 2px,
		2px 28px,
		28px 2px,
		2px 28px,
		28px 2px,
		2px 28px,
		28px 2px,
		2px 28px;
	background-position:
		left top,
		left top,
		right top,
		right top,
		left bottom,
		left bottom,
		right bottom,
		right bottom;
	background-repeat: no-repeat;
	opacity: 0.85;
}

.footer_inner {
	position: relative;
	z-index: 1;
	max-width: 1160px;
	margin: 0 auto;
}

.footer_divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin: 0.85rem auto 0.75rem;
	max-width: 28rem;
	color: rgba(212, 168, 75, 0.55);
	font-size: 0.45rem;
	line-height: 1;
}

.footer_divider::before,
.footer_divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(
		to right,
		transparent,
		rgba(212, 168, 75, 0.45) 20%,
		rgba(212, 168, 75, 0.45) 80%,
		transparent
	);
}

.footer_copyright {
	margin: 0;
	font-family: var(--font-accent);
	font-size: var(--text-sm);
	font-style: italic;
	line-height: var(--leading-normal);
	color: rgba(248, 244, 236, 0.78);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.footer_copyright a {
	color: #f0d78c;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.03em;
	border-bottom: 1px solid rgba(240, 215, 140, 0.35);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.footer_copyright a:hover,
.footer_copyright a:focus-visible {
	color: #ffe566;
	border-bottom-color: rgba(255, 229, 102, 0.65);
}

#templatemo_footer .footer_list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0;
}

#templatemo_footer .footer_list li {
	padding: 0;
	display: inline-flex;
	align-items: center;
	border-right: none;
}

#templatemo_footer .footer_list li:not(.last)::after {
	content: '◆';
	margin: 0 0.65rem;
	font-size: 0.35rem;
	color: rgba(212, 168, 75, 0.5);
	line-height: 1;
}

#templatemo_footer .footer_list li a {
	display: inline-block;
	padding: 0.2rem 0.45rem;
	font-family: var(--font-display);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: none;
	color: rgba(248, 244, 236, 0.82);
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

#templatemo_footer .footer_list li a:hover,
#templatemo_footer .footer_list li a:focus-visible {
	color: #ffe566;
	text-shadow: 0 0 12px rgba(212, 168, 75, 0.35);
}

#templatemo_footer .footer_list li a.current {
	color: #fbbc53;
	text-shadow: 0 0 10px rgba(251, 188, 83, 0.25);
}

#templatemo_menu_panel {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: #4a1510;
}

#templatemo_menu_panel #templatemo_menu_section,
#templatemo_menu_section ul {
	width: 100%;
	max-width: 1170px;
}

#templatemo_menu_panel #templatemo_menu_section {
	background-size: 100% 100%;
}

#templatemo_content {
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (max-width: 640px) {
	#templatemo_container {
		width: calc(100% - 0.75rem);
	}

	#templatemo_content {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

	#templatemo_footer {
		padding: 1.1rem 0.75rem 1rem;
	}

	#templatemo_footer::before {
		inset: 6px 6px;
	}

	#templatemo_footer .footer_list {
		gap: 0.25rem 0;
	}

	#templatemo_footer .footer_list li:not(.last)::after {
		margin: 0 0.4rem;
	}

	#templatemo_footer .footer_list li a {
		padding: 0.15rem 0.3rem;
		letter-spacing: 0.05em;
	}
}
