/* ==================================================================
   School footer — outline 11 (rt_gemini), section #g-footer / #g-copyright
   Loaded on every school page. Layout is unchanged: sponsor banner ads,
   HolyArt credit line, then three columns (address | school logo | CTA
   buttons). These rules only tighten and even out the vertical rhythm.

   Measured on /school at 1280px (before -> after):
     banner ads -> HolyArt line        58px -> 12px
     HolyArt line -> three columns     88px -> 28px
     centre column logo                173px -> 170px (original size kept)
     footer bottom                     last 25px was clipped by the
                                       -25px margin on #g-copyright
     Solutio credit                    was absolutely positioned over the
                                       button row in 3 lines -> now one
                                       line, in flow, 48px under the
                                       buttons and the end of the page
   ================================================================== */

/* Band padding: a consistent top inset; no dead navy under the credit. */
#g-footer {
  padding-top: 8px !important;
  padding-bottom: 0 !important;
}

/* Kill the theme's 10px margin on every footer content cell so the
   gaps below are the only vertical spacing in play. */
#g-footer .g-content {
  margin: 0 !important;
}

/* --- Sponsor banners + HolyArt credit: one 12px-gapped stack -------- */
#g-footer .g-block.size-100 .g-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 0 !important;
}
#g-footer .g-block.size-100 .platform-content {
  margin: 0 !important;
  padding: 0 !important;
}
#g-footer .g-block.size-100 .moduletable p {
  margin-bottom: 0 !important;
}

/* --- Gap between that stack and the three columns ------------------ */
#g-footer > .g-grid + .g-grid {
  margin-top: 28px !important;
  align-items: center !important; /* address / logo / buttons share a midline */
}
#g-footer > .g-grid + .g-grid .g-content {
  padding-top: 0 !important;
}

/* --- Centre column logo ------------------------------------------- */
#g-footer .g-block.size-20 .moduletable img {
  max-width: 170px !important;
  height: auto !important;
}

/* --- Outer columns: no vertical padding of their own ---------------- */
#g-footer .g-block.size-40 .g-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* --- Solutio credit -------------------------------------------------
   It used to be position:absolute; bottom:20px; right:20px, so it hung
   off the page bottom over the button row, and the theme's -25px top
   margin on #g-copyright clipped the last 25px of the footer. It is now
   in normal flow as the band's last row, on ONE line (the <br>s in the
   markup are hidden) and right-aligned to the same 38px gutter the
   footer grid uses, with a middle dot between the two credits.
   NB the <br>s stay in the DOM, so a sibling selector like span + span
   will NOT match the second span — use :last-of-type. */
#g-copyright {
  margin-top: 0 !important;
  height: auto !important;
}
#g-copyright .g-content {
  padding: 0 !important;
}
#g-copyright .g-content > div {
  position: static !important;
  padding: 0 38px 10px !important;
  line-height: 1.3 !important;
  text-align: right !important;
}
#g-copyright .g-content > div br {
  display: none !important;
}
#g-copyright .g-content > div span:last-of-type::before {
  content: " \00b7  ";
  color: #8f9bb5;
}
