/**
 * Page structure: container, header, main, footer.
 * Header/footer geometry aligned with Oxygen template 8.
 */

.l-container {
	width: min(100% - (var(--lions-space-4) * 2), var(--lions-container-width));
	margin-inline: auto;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

.site-header {
	position: relative;
	z-index: 100;
	background-color: var(--lions-color-brand);
	color: var(--lions-color-on-brand);
	/* Allow logo to overhang the 72px row (Oxygen flex-centered logo). */
	overflow: visible;
}

.site-header.is-sticky {
	position: sticky;
	top: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.site-header a {
	color: var(--lions-color-on-brand);
	text-decoration: none;
}

.site-header a:hover,
.site-header a:focus-visible {
	color: var(--lions-color-on-brand);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--lions-space-4);
	min-height: var(--lions-header-height);
	height: var(--lions-header-height);
}

.site-branding {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	/* Match Oxygen .oxy-header-left: center the logo box in the 72px row. */
	align-self: center;
	height: var(--lions-header-height);
	overflow: visible;
	padding-top: 0;
}

.site-branding__link {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	height: var(--lions-header-height);
	overflow: visible;
}

.site-branding__logo {
	display: block;
	width: var(--lions-logo-size);
	height: var(--lions-logo-size);
	max-width: none;
	/*
	 * Oxygen #image-20-8: margin-top offset, then flex-centered in the row so
	 * the visible overhang equals --header-logo-overlap (~30px on LIVE).
	 */
	margin-top: var(--lions-header-logo-offset);
	flex-shrink: 0;
	position: relative;
	z-index: 10;
	object-fit: contain;
}

.site-branding__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding-top: 0;
	font-weight: var(--lions-font-weight-semibold);
	line-height: 1.25;
	color: var(--lions-color-on-brand);
}

.site-branding__name,
.site-branding__founded {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-main {
	padding-block: var(--lions-space-6);
	min-height: 50vh;
	/* Clear overhanging logo. */
	position: relative;
	z-index: 1;
}

/*
 * Full-bleed heroes must start at the header bottom edge (LIVE gap = 0).
 * Keep default site-main top padding for pages without a leading hero.
 */
.site-main:has(> .home-hero),
.site-main:has(> .page-hero),
.site-main:has(> .cinema-single__hero) {
	padding-top: 0;
}

/* -------------------------------------------------------------------------- */
/* Footer (Oxygen section-14-8)                                               */
/* -------------------------------------------------------------------------- */

.site-footer {
	background-color: var(--lions-color-brand);
	color: var(--lions-color-on-brand);
	padding-block: var(--lions-space-6);
	margin-top: var(--lions-space-7);
	border-top: 0;
}

.site-footer__columns {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.site-footer__column {
	width: 33.33%;
	box-sizing: border-box;
}

.site-footer__column--center {
	width: 33.34%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--lions-space-3);
}

.site-footer__name {
	margin: 0;
	color: var(--lions-color-on-brand);
	font-size: 22px;
	font-weight: var(--lions-font-weight-normal);
	line-height: 1.3;
}

.site-footer__mark {
	display: block;
	width: min(100%, 300px);
	height: auto;
	margin-inline: auto;
}

@media (max-width: 991px) {
	.site-footer__column,
	.site-footer__column--center {
		width: 100%;
	}

	.site-footer__column--empty {
		display: none;
	}
}

@media (max-width: 479px) {
	.site-branding__text {
		font-size: 12px;
	}
}

@media (max-width: 1120px) {
	.site-header__inner {
		flex-wrap: wrap;
		/* Keep the blue bar at --lions-header-height like LIVE Oxygen. */
		height: var(--lions-header-height);
		min-height: var(--lions-header-height);
		padding-block: 0;
		align-items: center;
	}

	.site-branding {
		flex: 1 1 auto;
	}

	/*
	 * Open mobile nav drops below the bar without growing the blue row
	 * (logo overhang + hamburger stay in the 72px band).
	 */
	.primary-navigation {
		flex: 1 0 100%;
	}
}
