/*
Theme Name: PA Academy (Child)
Theme URI: https://learn.poweringaustralia.com.au
Description: Powering Australia Academy child theme. Holds brand tokens and custom code, host-mounted and git-tracked, designed to coexist with Elementor (Elementor owns page layouts in the DB; this theme owns global code/tokens).
Author: Powering Australia
Template: hello-elementor
Version: 0.1.1
Text Domain: pa-academy
*/

/* Element-level rules are intentionally minimal so they don't fight Elementor.
   Brand variables live in tokens.css (enqueued first). */

/* Footer Acknowledgement of Country: keep the line measure readable and slightly
   recessed against the navy footer. */
.pa-acknowledgement {
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
	opacity: 0.85;
}

/* Header logo: cap height so the navy bar stays compact. */
.pa-header-logo img {
	height: 40px;
	width: auto;
}

/* ============================================================
   My Account — branded, SSO-only login (guests) vs dashboard (members)
   The guest login surfaces ONLY the "Sign in with Microsoft" button.
   WordPress adds the `logged-in` body class, so we toggle the two page
   sections off that. Elementor doesn't emit custom CSS classes on these
   containers in this build, so we target their stable element-ID classes
   (page #9):
     guest login container   = .elementor-element-1c1d72c
     member dashboard cont.  = .elementor-element-45db158
     login media column      = .elementor-element-bcbfc49
     login panel column      = .elementor-element-d805da8
   ============================================================ */
.logged-in .elementor-element-1c1d72c { display: none !important; }      /* hide login from members */
body:not(.logged-in) .elementor-element-45db158 { display: none !important; } /* hide dashboard+wc login form from guests */

/* Login visual: cover image with a slow Ken Burns drift. */
.elementor-element-bcbfc49 { overflow: hidden; border-radius: 14px; align-self: stretch; }
.elementor-element-bcbfc49 .elementor-widget-container,
.elementor-element-bcbfc49 figure { height: 100%; margin: 0; }
.elementor-element-bcbfc49 img {
	width: 100%;
	height: 100%;
	min-height: 440px;
	object-fit: cover;
	display: block;
	animation: pa-kenburns 22s ease-in-out infinite alternate;
}
@keyframes pa-kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }

/* Panel content rises in on load, staggered. */
.elementor-element-d805da8 > .elementor-element { animation: pa-rise 0.7s ease both; }
.elementor-element-d805da8 > .elementor-element:nth-child(2) { animation-delay: 0.10s; }
.elementor-element-d805da8 > .elementor-element:nth-child(3) { animation-delay: 0.20s; }
.elementor-element-d805da8 > .elementor-element:nth-child(4) { animation-delay: 0.30s; }
.elementor-element-d805da8 > .elementor-element:nth-child(5) { animation-delay: 0.40s; }
@keyframes pa-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Gentle pulse on the SSO button to draw the eye. */
.elementor-element-d805da8 .pa-sso { max-width: none; margin: 8px 0 0; }
.elementor-element-d805da8 .pa-sso__btn { animation: pa-sso-pulse 2.8s ease-in-out infinite; }
@keyframes pa-sso-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(244, 125, 32, 0); }
	50%      { box-shadow: 0 0 0 7px rgba(244, 125, 32, 0.14); }
}
