/* Site-wide style tweaks for the static IR site. Loaded on every page after the theme CSS.
   Edit here, then rebuild (python tools/mirror.py) or copy this file to source/mirror-assets/. */

/* Home hero: "Latest Earnings" button centred at the bottom of the banner, below the robots.
   The button is positioned against the whole banner (.jumbotron), so the inner container must
   not be the positioning parent; a spacer keeps the banner as tall as before. */
.jumbotron .container.position-relative:has(.hero-button-container) {
  position: static !important;
}
/* With the container no longer positioned, lift the hero text above the absolutely positioned
   banner image (otherwise the image paints over the title). */
.jumbotron #hero-content h1 {
  position: relative;
  z-index: 1;
  color: #000;              /* "Investor Relations" title: black on the light banner */
}
.jumbotron #hero-content .hero-button-container {
  z-index: 1;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 48px;             /* distance from the bottom edge of the banner */
  margin: 0 !important;
  display: flex;
  justify-content: center;
}
.jumbotron #hero-content .region-hero::after {
  content: "";
  display: block;
  height: 90px;             /* keeps the banner at its original height */
}
