/*
 * Pilanto Platform Base Theme — Site Shell WDS paint (first slice)
 *
 * Website Design System owns paint. Loaded only when the Connector public
 * site-design activation helper is true. Every rule requires the proven body
 * marker and pp-shell context.
 *
 * First slice: four V1 color tokens only. No geometry, typography, CTA paint,
 * or interaction states.
 */

/*
 * GeneratePress paints .main-navigation with its own opaque background, so the
 * .site-header band alone does not cover the primary navigation chrome. The
 * nav selector carries no .toggled qualifier, so desktop and GP mobile keep the
 * same mapping.
 */
body.pp-shell.pilanto-platform-has-site-design .site-header,
body.pp-shell.pilanto-platform-has-site-design .site-header .main-navigation {
	background-color: var(--pilanto-surface-default);
	color: var(--pilanto-text-primary);
}

/*
 * The nav-scoped selector adds one class so it outranks GeneratePress
 * `.main-navigation .main-nav ul li a`, which a plain `.site-header a` loses to
 * on element count.
 */
body.pp-shell.pilanto-platform-has-site-design .site-header a,
body.pp-shell.pilanto-platform-has-site-design .site-header .main-navigation a {
	color: var(--pilanto-text-primary);
}

@media (min-width: 769px) {
	body.pp-shell.pilanto-platform-has-site-design .main-navigation:not(.toggled) li.pp-shell-mega-menu > ul.sub-menu {
		background-color: var(--pilanto-surface-default);
		color: var(--pilanto-text-primary);
	}

	body.pp-shell.pilanto-platform-has-site-design .main-navigation:not(.toggled) li.pp-shell-mega-menu > ul.sub-menu a {
		color: var(--pilanto-text-primary);
	}
}

/*
 * GeneratePress paints .footer-widgets and .site-info separately, and together
 * they fill the .site-footer band, so the band selector alone is not visible.
 */
body.pp-shell.pilanto-platform-has-site-design .site-footer,
body.pp-shell.pilanto-platform-has-site-design .site-footer .footer-widgets,
body.pp-shell.pilanto-platform-has-site-design .site-footer .site-info {
	background-color: var(--pilanto-surface-alternate);
	color: var(--pilanto-text-on-alternate);
}

body.pp-shell.pilanto-platform-has-site-design .site-footer a {
	color: var(--pilanto-text-on-alternate);
}
