@charset "UTF-8";

/**
 * layout.css 2.3.0
 * Author: hybrid.
 * Type: core
 *
 * Core layout — wrapper, header, footer, sections, main, content-width.
 * Project overrides live in styles-layout.css (loaded after this file).
 *
 * Section modifiers
 * [default]  — normal content max-width
 * .focus     — heading section
 * .full      — no content max-width, no padding
 * .large     — no content max-width
 * .min       — short padding
 * .cover     — fullscreen (100svh) min-height
 *
 * WP / CSS mapping
 * section           ↔ .section / .wp-block-group
 * section-content   ↔ .wp-block-group__inner-container
 * null              ↔ short
 * alignwide         ↔ normal
 * alignfull         ↔ large
 *
 * Breakpoints (px)
 * 760 / 1000 / 1200
 *
 * Tokens
 * --gutter-gap          structural spacing: header padding, first/last child in main,
 *                       section-content margins. Varies: 1rem → 3rem.
 * --section-gap-x/-y    section-content margin (x: left/right, y: top/bottom),
 *                       derived from --gutter-gap, overridden per section modifier.
 * --section-width       section-content width (100% minus x gaps).
 * --content-max-width   cap of content areas (default: 100svw). Set on :root per project.
 *                       Reset to 100% in section.full / .large and nested content-width-*.
 * --content-width       usable width for content-width-* fractions:
 *                       min(--content-max-width, 100svw - gutters); 100% when nested.
 * --section-bg-width,
 * --section-bg-gap-x/-y width/gap of background-color blocks,
 *                       fallback to --section-width / --section-gap-y.
 * --viewport-height,
 * --header-height,
 * --footer-height,
 * --sticky-footer-height neutral defaults, overridden per project.
 *
 * Z-index scale (global stacking only; local stacking inside a component stays numeric)
 * --z-nav-sticky / --z-header / --z-tooltip / --z-overlay
 * Consumers read them with a numeric fallback: var(--z-header, 1200)
 *
 * Dependencies
 * --content-spacing  defined in spacing.css
 * --text-color       defined in colors.css
 * --background-color defined in colors.css
 * --duration-*       defined in animations.css
 * --ease, --ease-fast defined in animations.css
 */



/* ================================================================================================== */
/* ============================================= CONFIG ============================================= */
/* ================================================================================================== */


/* ============================== HEADER ============================== */

:root {
	--header-direction: column;
	--header-align: center;
	--header-justify: space-between;
	--header-padding-x: var(--content-spacing);
	--header-padding-y: var(--content-spacing);
}


/* ============================== FOOTER ============================== */

:root {
	--footer-direction: column;
	--footer-align: center;
	--footer-padding: 0;
}


/* ============================== GUTTERS ============================== */

/* --gutter-gap = structural spacing, base of --section-gap-x/-y */

:root { --gutter-gap: 1rem; }

@media (min-width: 760px) {
	:root { --gutter-gap: 2rem; }
}

@media (min-width: 1200px) {
	:root { --gutter-gap: 3rem; }
}


/* ============================== SECTIONS ============================== */

:root {
	--section-gap-x: calc(var(--gutter-gap) * 1);
	--section-gap-y: var(--gutter-gap);
	--section-width: calc(100% - var(--section-gap-x) * 2);

	--section-bg-gap-x: 0;
	--section-bg-gap-y: var(--section-gap-y);
	--section-bg-width: var(--section-width);
}


/* ============================== CONTENT WIDTH ============================== */

/* cap: full screen by default, override on :root per project */

:root { --content-max-width: 100svw; }

/* usable width: capped, minus gutters */

:root { --content-width: min(var(--content-max-width), calc(100svw - var(--section-gap-x) * 2)); }


/* ============================== Z-INDEX ============================== */

/* global stacking scale, override per project */

:root {
	--z-nav-sticky: 100;
	--z-header: 1200;
	--z-tooltip: 2000;
	--z-overlay: 10000;
}


/* ============================== HEIGHTS ============================== */

/* neutral defaults, override per project (sticky header, scroll-padding) */

:root {
	--viewport-height: 100vh;
	--header-height: 0px;
	--footer-height: 0px;
	--sticky-footer-height: 0px;
}

/* svh when supported (Chrome 108, Safari 15.4), vh otherwise */

@supports (height: 100svh) {
	:root { --viewport-height: 100svh; }
}



/* ===================================================================================================== */
/* ============================================= FALLBACKS ============================================= */
/* ===================================================================================================== */


/* overflow: clip — fallback: hidden (Chrome < 90, Safari < 16) */

section        { overflow: hidden; }
main           { overflow-x: hidden; }



/* ====================================================================================================== */
/* ============================================= ANIMATIONS ============================================= */
/* ====================================================================================================== */

/* ============================== STRUCTURE ============================== */

#wrapper {
	transition:
		opacity var(--duration-fast) var(--ease),
		filter var(--duration-fast) var(--ease);
}
body {
	transition:
		color var(--duration-fast) var(--ease),
		background var(--duration-slow) var(--ease);
}
header {
	transition:
		opacity var(--duration-fast) var(--ease),
		background var(--duration-normal) var(--ease);
}
main,
footer {
	transition:
		opacity var(--duration-fast) var(--ease-fast),
		filter var(--duration-fast) var(--ease-fast),
		transform var(--duration-normal) var(--ease);
}



/* ================================================================================================ */
/* ============================================= CORE ============================================= */
/* ================================================================================================ */


/* ============================== VIEWPORT ============================== */

html,
body {
	height: 100%;
	width: 100%;
}


/* ============================== BODY ============================== */

body {
	overflow-x: hidden;
	scroll-padding-top: var(--header-height, 0px); /* Chrome scroll restoration fix + scroll.js */
	color: var(--text-color);
	background: var(--background-color);
}


/* ============================== WRAPPER ============================== */

#wrapper {
	position: relative;
	display: flex; /* keeps footer at bottom */
	flex-direction: column;
	min-height: 100%;
	background: inherit;
	margin: 0;
	padding: 0;
}



/* =========================================================================================================== */
/* ============================================= HEADER / FOOTER ============================================= */
/* =========================================================================================================== */


/* ============================== DEFAULT ============================== */

header, footer {
	position: relative;
	display: flex;
	width: 100%;
	pointer-events: none;
}
header > *, footer > * {
	pointer-events: auto;
	margin: 0;
	color: inherit;
	fill: inherit;
}

/* ============================== HEADER ============================== */

header {
	z-index: var(--z-header, 1200);
	flex-direction: var(--header-direction);
	align-items: var(--header-align);
	justify-content: var(--header-justify);
	padding-inline: var(--header-padding-x);
	padding-block: var(--header-padding-y);
}

/* above the header background */

header > * { z-index: 10; }


/* ============================== FOOTER ============================== */

footer {
	z-index: 10;
	flex-direction: var(--footer-direction);
	align-items: var(--footer-align);
	padding: var(--footer-padding);
}


/* ============================== STICKY ============================== */

header.sticky {
	position: sticky;
	top: 0;
}



/* ==================================================================================================== */
/* ============================================= SECTIONS ============================================= */
/* ==================================================================================================== */

/**
 * max-width: none  — WP back-compat
 * overflow: hidden — swipers
 */

/* ============================== DEFAULT ============================== */

section {
	position: relative;
	clear: both;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	min-height: auto;
	max-width: none;
	margin-inline: 0;
	overflow: clip;
}


/* ============================== SECTION-CONTENT ============================== */

.section-content {
	position: relative;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	width: min(var(--section-width), var(--content-max-width));
	margin-inline: var(--section-gap-x);
	margin-block: var(--section-gap-y);
	max-width: var(--content-max-width);
}


/* ============================== MODIFIERS ============================== */

/* full, large, min, cover */

/* =============== TOKENS =============== */

section.full {
	--section-gap-x: 0;
	--section-gap-y: 0;
	--section-width: 100%;
}

section.large {
	--section-gap-x: var(--gutter-gap);
	--section-width: calc(100% - var(--gutter-gap) * 2);
}

section.min {
	--section-gap-x: calc(var(--gutter-gap) / 2);
	--section-gap-y: calc(var(--gutter-gap) / 2);
	--section-width: calc(100% - var(--gutter-gap) / 4 * 2);
}

/* no cap: full / large sections follow their own width */

section.full,
section.large { --content-max-width: 100%; }

/* =============== RULES =============== */

section.full > .section-content { max-width: none; margin-top: 0; }

section.large,
section.large > .section-content { max-width: none; }

section.cover { min-height: var(--viewport-height); }


/* ============================== CHILDREN ============================== */

/* width:auto children */

section .section-content > .button { align-self: flex-start; }
section.text-center .section-content > .button { align-self: center; }
section.text-right .section-content > .button { align-self: flex-end; }


/* ============================== RESPONSIVE ============================== */

@media (width < 1000px) {
	section { flex-direction: column; }
}



/* ================================================================================================ */
/* ============================================= MAIN ============================================= */
/* ================================================================================================ */


/* ============================== DEFAULT ============================== */

main {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0;
	margin: 0;
	flex-grow: 1;
	overflow-x: clip;
	overflow-y: visible;
	min-height: var(--viewport-height);
}


/* ============================== EXTRA SPACING ============================== */

/* extra bottom spacing */

main { padding-bottom: var(--gutter-gap); }
main:has(> section:last-child) { padding-bottom: 0; }


/* ============================== FIRST / LAST CHILD ============================== */

/* :where() keeps specificity at (0,0,1): a project selector overrides it with no !important */
main > :where(:first-child:not(.hidden, section, .sticky)) { margin-top: var(--section-gap-y); }
main > section.full:last-child .section-content { margin-bottom: 0; }


/* ============================== CHILDREN ============================== */

/*
 * Default width for direct children of main that do not manage their own width.
 * Add new full-width components to the exclusion list.
 */

main > *:not(section):not(.full):not(.button):not(button):not([class*='-background-color']) {
	width: min(100% - var(--section-gap-x) * 2, var(--content-max-width));
	margin-inline: max(var(--section-gap-x), calc((100% - var(--content-max-width)) / 2));
}

/* buttons keep their intrinsic width */

main > :is(button, .button) {
	width: auto;
	align-self: flex-start;
	margin-inline: max(var(--section-gap-x), calc((100% - var(--content-max-width)) / 2));
}


/* ============================== BACKGROUND COLOR BLOCKS ============================== */

/* Blocks carrying a .has-*-background-color class (colors.css) */

/* mark, .highlighted: inline highlight, not a block — excluded from all rules below */
/* :where() keeps the specificity equal, the direct-child rule wins by order */

main *:where(:not(section, mark, .highlighted))[class*='-background-color'] { padding: var(--gutter-gap); }

main > :where(:not(section, mark, .highlighted))[class*='-background-color'] {
	position: relative;
	z-index: 5;
	width: var(--section-bg-width);
	padding: var(--section-bg-gap-y) var(--section-bg-gap-x);
	max-width: var(--content-max-width);
}
main > :where(:not(section, mark, .highlighted))[class*='-background-color']::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	left: 50%;
	height: 100%;
	width: 100vw;
	transform: translate3d(-50%, 0, 0);
	background: inherit;
	pointer-events: none;
}



/* ==================================================================================================== */
/* ============================================= CONTENT WIDTH ======================================== */
/* ==================================================================================================== */


/* ============================== DEFAULT ============================== */

/* is-left as default */

[class*='content-width-'] { align-self: flex-start; margin-inline: 0 auto; }


/* ============================== SIZES ============================== */

/* in main: usable width is capped, minus gutters */

main > [class*='content-width-'] {
	--content-width: min(var(--content-max-width), calc(100svw - var(--section-gap-x) * 2));
}

/* nested: relative to the parent, no cap */

:not(main) > [class*='content-width-'] {
	--content-width: 100%;
	--content-max-width: 100%;
}

@media (min-width: 1000px) {
	.content-width-1-3,
	.content-width-narrow { max-width: calc(var(--content-width) / 3); }
	.content-width-1-2,
	.content-width-half { max-width: calc(var(--content-width) / 2); }
	.content-width-2-3,
	.content-width-short { max-width: calc(var(--content-width) * 2 / 3); }
}


/* ============================== ALIGNMENT ============================== */

[class*='content-width-'].is-center { align-self: center; margin-inline: auto; }
[class*='content-width-'].is-right { align-self: flex-end; margin-inline: auto 0; }


/* ============================== IN MAIN ============================== */

main > [class*='content-width-'] { margin-inline: max(var(--section-gap-x), calc((100% - var(--content-max-width)) / 2)) var(--section-gap-x); }
main > [class*='content-width-'].is-center { margin-inline: var(--section-gap-x) var(--section-gap-x); }
main > [class*='content-width-'].is-right { margin-right: max(var(--section-gap-x), calc((100% - var(--content-max-width)) / 2)); }