/*
 * .app-footer — the page footer, following the home vertical's shared/_site_footer.html.erb
 * in structure (docs/plans/seq-redesign.md § 1). Its classes are the vertical's own
 * (verticals/geneops/app/assets/stylesheets/components/chrome/site-footer.css), not the
 * gem's, so Seq writes them here: one surface with the identity band (GeneOps Inc.'s Delaware
 * registered office) and a hairline-separated bottom bar with the copyright and Seq's
 * version. The text is set by the gem's .body-sm composite in the view; this file declares no
 * type. The gem's body is a flex column, so margin-top: auto keeps the footer at the bottom
 * of a short page.
 *
 *   <footer class="app-footer">
 *     <div class="app-footer-inner">
 *       <div class="site-footer-top">
 *         <address class="site-footer-address body-sm text-secondary">…</address>
 *       </div>
 *       <div class="site-footer-bottom">
 *         <p class="body-sm text-tertiary">© 2026 GeneOps Inc. All rights reserved.</p>
 *         <p class="body-sm text-tertiary">Seq 0.1.0</p>
 *       </div>
 *     </div>
 *   </footer>
 */

.app-footer {
  margin-top: auto;
  padding-block: var(--spacing-48);
  background-color: var(--background-surface-1);
  border-top: var(--stroke-weight-1) solid var(--border-default);
}

/* Full-bleed with the nav's own gutters (.main-nav-bar: 16px, 48px from tablet up) rather
   than the 1296px content box, so the identity band starts under the nav's logo at every
   width. */
.app-footer-inner {
  padding-inline: var(--spacing-16);
}
@media (min-width: 768px) {
  .app-footer-inner {
    padding-inline: var(--spacing-48);
  }
}

.site-footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-32);
}
@media (min-width: 768px) {
  .site-footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-48);
  }
}

/* <address> defaults to italic in every browser. */
.site-footer-address {
  font-style: normal;
  line-height: 1.5;
}

.site-footer-bottom {
  margin-top: var(--spacing-32);
  padding-top: var(--spacing-16);
  border-top: var(--stroke-weight-1) solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
}
@media (min-width: 768px) {
  .site-footer-bottom {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--spacing-24);
  }
}
