/*
 * The portal's footer on the academy (template-parts/atlas/footer.php): FooterPl.js under the look, measured on the
 * portal of release 3.1.5 at 1651 px in Ocean and Day, 25 November 2026. Sizes in px, because Herald sets the root's
 * font to 10 px. The footer stands in the width of the academy's pages (look/library.css, `.aka-lib`), which is the
 * portal's container.
 */

.aka-footer-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 1540px) {
  .aka-footer-wrap {
    max-width: 1480px;
  }
  html[data-ui-width='narrow'] .aka-footer-wrap {
    max-width: var(--ui-page-narrow);
  }
}
html[data-ui-width='full'] .aka-footer-wrap {
  max-width: none;
}

/* Falcon's greys, which the academy has not got: gray-300 for the rule, and the hover colour of `.link-600`
   (`--falcon-colored-link-hover-color-600`, the same in both themes). */
.aka-footer {
  --aka-footer-rule: #d8e2ef;
  --aka-footer-hover: rgb(92.8, 103.2, 118.4);
  /* A block of its own, so the margins of its first and last lines stay inside it, as in the portal's flex column. */
  display: flow-root;
  color: var(--ui-muted);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  text-align: center;
}
html.dark .aka-footer {
  --aka-footer-rule: #344050;
}
.aka-footer p {
  color: var(--ui-muted);
}

/* `hr.mt-0.mb-0.border-300.opacity-50` */
.aka-footer .aka-footer-rule {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--aka-footer-rule);
  background: none;
  opacity: 0.5;
}

/* `div.mt-5.fs--2.ms-2.me-2`: 11.11 px type on a line of 1.5, 48 px under the rule. */
.aka-footer .aka-footer-data {
  margin: 48px 8px 0;
  font-size: 11.1111px;
  line-height: 1.5;
}
.aka-footer .aka-footer-source {
  margin: 0 0 8px;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
}
.aka-footer .aka-footer-terms {
  margin: 0 0 16px;
  font-size: inherit;
  line-height: inherit;
}

/* `.row.fs--1.mt-4.mb-3` with its `p.mb-0.text-600`: 13.33 px type on a line of 20 px. */
.aka-footer .aka-footer-links {
  margin: 28.8px 0 16px;
  font-size: 13.3333px;
  line-height: 20px;
}
.aka-footer-gap {
  margin: 0 4px 0 16px;
}
.aka-footer-link.is-first {
  margin-left: 4px;
}
.aka-footer-sep,
.aka-footer-end {
  margin: 0 4px;
}
.aka-footer-love {
  margin: 0 4px 0 16px;
}
.aka-footer-heart {
  margin: 0 4px;
}

/* `.link-600` under the look: the set's caption grey at rest, Falcon's darker grey under the mouse and the keyboard,
   underlined under the mouse as every link of the portal. */
.aka-footer a.aka-footer-link {
  color: var(--ui-muted) !important;
  text-decoration: none !important;
}
.aka-footer a.aka-footer-link:hover,
.aka-footer a.aka-footer-link:focus {
  color: var(--aka-footer-hover) !important;
}
.aka-footer a.aka-footer-link:hover {
  text-decoration: underline !important;
}

/* Font Awesome's heart at `size="sm"` (0.875em) and `shrink-1`, beating (user.scss, `.heart-beat`), in the set's red of
   a loss, which the look gives the heart's #e41d27 (cards.css). */
.aka-footer-heart svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  overflow: visible;
  color: var(--ui-loss);
  font-size: 0.875em;
  vertical-align: -0.125em;
  animation: aka-heart-beat 1.8s ease-in-out infinite;
}
@keyframes aka-heart-beat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.2);
  }
  70% {
    transform: scale(1);
  }
}
