/*
 * ROW Academy (Batch G): the Academy home's states and live's Webflow interactions
 * (components/frontend/AcademyHome.tsx), the inline icons that replace live's icon
 * font, and the parts Webflow sets inline on live. Hand-written; the rest of the looks
 * are ported from live (home.css, generated). Academy-only (ACADEMY_STYLESHEETS);
 * every rule is scoped under the home's root (.raven-academy-home).
 */

/* Live's hero backgrounds sit at z-index -1 inside the page body: the root is their stacking context (as Batch F's roots). */
.raven-academy-home { isolation: isolate; }

/* Live's icon font glyphs, drawn as inline SVG at the glyph's width (Font Awesome advances). */
.raven-academy-home .academy-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}
.raven-academy-home .academy-icon-chevron { width: 0.625em; }
.raven-academy-home .academy-icon-arrow { width: 0.875em; }
.raven-academy-home .academy-icon-cap { width: 1.25em; }
.raven-academy-home .academy-icon-play { width: 0.75em; }

/*
 * Hero (live's interaction: the hero trigger leaving / entering the screen): the hero
 * shrinks to 0.93 over 1.4 s and its square-cornered background fades out in 70 ms,
 * showing the rounded one; both come back on entering.
 */
.raven-academy-home .home-hero_component {
  transform: scale(1);
  transition: transform 1.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.raven-academy-home .home-hero_component[data-academy-hero-out] { transform: scale(0.93); }
.raven-academy-home .home-hero_background-wrapper_align-centre.is-no-radius { transition: opacity 70ms cubic-bezier(0.83, 0, 0.17, 1); }
.raven-academy-home .home-hero_component[data-academy-hero-out] .home-hero_background-wrapper_align-centre.is-no-radius { opacity: 0; }

/* Card hover (live's interaction on every card link): the picture grows to 1.07 over 0.5 s (outQuart). */
.raven-academy-home .academy-card_image,
.raven-academy-home .academy-ebook_image { transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); }
@media (hover: hover) {
  .raven-academy-home .academy-card_link:hover .academy-card_image,
  .raven-academy-home .academy-card_link:hover .academy-ebook_image { transform: scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .raven-academy-home .home-hero_component,
  .raven-academy-home .home-hero_background-wrapper_align-centre.is-no-radius,
  .raven-academy-home .academy-card_image,
  .raven-academy-home .academy-ebook_image { transition: none; }
}

/* Video players: Webflow writes the 940x528 frame's ratio inline on live. */
.raven-academy-home .ds-video-card_image-wrapper { padding-top: 56.17%; }

/*
 * Lottie: live's player draws an inline SVG (600 x 600, 100% wide and high) that sets the
 * animation box; the page script keeps that SVG empty as the sizer and lays the player's
 * canvas over it (same box, the animation fitted and centred as live's SVG draws it). Inline,
 * as live's (Raven's base CSS makes SVGs blocks): the line's descender below it is part of live's box.
 */
.raven-academy-home [data-academy-lottie] { position: relative; }
.raven-academy-home .academy-home-lottie-sizer { display: inline; vertical-align: baseline; width: 100%; height: 100%; }
.raven-academy-home .academy-home-lottie { position: absolute; top: 0; left: 0; }
.raven-academy-home .academy-home-lottie canvas { display: block; width: 100%; height: 100%; }

/*
 * Live's auth pair (community banner): live's CSS hides both (home.css) and its auth script
 * shows the one for the visitor (display: block); a guest until the shell knows otherwise.
 */
.raven-academy-home:not([data-academy-auth="authenticated"]) [data-dwp-user-type="unauthenticated"],
.raven-academy-home[data-academy-auth="authenticated"] [data-dwp-user-type="authenticated"] { display: block; }
