/**
 * Site layout: header, the bar above it and the footer.
 *
 * These rules pull the chrome onto the same shell as the hero block, so the
 * logo, the menu and the footer rows share one left and right edge. They are
 * kept out of style.css on purpose: the theme stylesheet still holds the older
 * header styling, this file holds the new shell.
 *
 * The shell matches the hero block (sw-blocks/hero/hero.css): a 1440px canvas
 * with the gutter included in that width.
 */

:root {
	--sw-shell-max: 1440px;
	--sw-shell-gutter: clamp(20px, 4vw, 56px);
}

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

/* GeneratePress caps .inside-header at the 1200px container width. */
.site-header .inside-header {
	max-width: var(--sw-shell-max);
	margin-inline: auto;
	padding-inline: var(--sw-shell-gutter);
}

/* The header is lifted off the page with a shadow instead of a divider line. */
.site-header {
	position: relative;
	z-index: 10;
	border-bottom: none !important;
	box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.07);
}

/* Full-bleed header items keep their tap targets on small screens. */
@media (max-width: 768px) {
	.site-header .inside-header {
		padding-inline: 0;
	}
}

/*
 * Secondary navigation above the header
 * -------------------------------------------------------------------------- */

.secondary-nav-above-header .secondary-navigation .inside-navigation.grid-container,
.secondary-nav-below-header .secondary-navigation .inside-navigation.grid-container {
	max-width: var(--sw-shell-max) !important;
	margin-inline: auto !important;
	padding: 0 var(--sw-shell-gutter) !important;
}

/*
 * Footer
 * -------------------------------------------------------------------------- */

/*
 * The outer container carries the background, so it runs the full window width
 * while its padding keeps the rows on the shell.
 */
.site-footer > .gb-container-a1f7dabe {
	max-width: none;
	padding-bottom: 80px;
	padding-inline: max(var(--sw-shell-gutter), calc((100% - var(--sw-shell-max)) / 2 + 56px));
}

/* The rows carried their own 32px (14px on mobile) side inset. */
.site-footer > .gb-container-a1f7dabe > .gb-container {
	margin-inline: 0;
	padding-inline: 0;
}

/*
 * The divider rows inherited --contrast-3 (#c4c4c4), which reads as near-white
 * against the footer's dark background. A translucent white recedes instead.
 */
.site-footer > .gb-container-a1f7dabe > .gb-container-c5b8b506,
.site-footer > .gb-container-a1f7dabe > .gb-container-7e093022,
.site-footer > .gb-container-a1f7dabe > .gb-container-f7cadb8b,
.site-footer > .gb-container-a1f7dabe > .gb-container-0d7835b2 {
	border-top-color: rgba(255, 255, 255, 0.18);
}

/*
 * The two vertical column dividers are dropped. On mobile these containers
 * swap the right border for a bottom one, so that line keeps the light color.
 */
.site-footer .gb-container-e0c48c40,
.site-footer .gb-container-670b9d22 {
	border-color: rgba(255, 255, 255, 0.18);
	border-right-width: 0;
}
