/*
Theme Name: Giti Elevate Child
Description: Modular account features for Giti Elevate, using Divi 5 layouts and presets.
Author: Carona
Template: Divi
Version: 1.0.0
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: giti-elevate
*/

/* Layout and page styling belong in Divi 5 presets. This rule covers theme-owned
   .ge- markup that Divi has no module to attach a preset to, and takes its values
   from the Giti Elevate design system with literal fallbacks. */
/* The active-item marker: a 3px yellow rule, per the design system's selected state. */
.ge-navigation [aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var( --giti-yellow, #FDD000 );
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}

/* Sticky footer: the page fills at least the viewport so the Theme Builder footer sits
   at the bottom on short pages instead of floating mid-screen. No Divi preset reaches
   these wrappers. The admin bar's height (32px, 46px at WordPress's mobile breakpoint)
   comes off the minimum so signed-in pages don't scroll by that much. */
#page-container,
#et-boc,
#et-main-area {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}
#et-boc,
#et-main-area {
	flex: 1 0 auto;
	min-height: 0;
	background-color: var( --paper, #F5F5F5 );
}
#main-content {
	flex: 1 0 auto;
}
footer.et-l--footer {
	flex-shrink: 0;
}
body.admin-bar #page-container {
	min-height: calc(100vh - 32px);
	min-height: calc(100dvh - 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar #page-container {
		min-height: calc(100vh - 46px);
		min-height: calc(100dvh - 46px);
	}
}
