/* Grapes Labs footer styles, for <gl-footer> (gl-footer.js).
 * The maintained copy is plugins/gl/templates/footer/gl-footer.css in the gl-kb repository: copy it unchanged, never edit a copy.
 * Colors follow the page (currentColor), so it fits light and dark apps. An app may set, on gl-footer or above it:
 *   --gl-footer-width (default 1240px), --gl-footer-margin (default 40px auto 0), --gl-footer-font (default: the page's),
 *   --gl-footer-padding (default 28px, 20-40px, 40px: a slim footer inside an app screen sets less).
 * <gl-footer compact> is the slim version for an app screen that does not scroll as a page (a board, an editor):
 * one row, no margin, as wide as its container; on phones two short rows.
 * Also styles <gl-github> (the GitHub icon link for the top bar): it takes the color of the bar; --gl-github-size
 * (default 36px) sets its square. */

gl-footer { display: block; }
gl-footer .glf {
  box-sizing: border-box;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px 24px; align-items: center;
  width: 100%; max-width: var(--gl-footer-width, 1240px); margin: var(--gl-footer-margin, 40px auto 0);
  padding: var(--gl-footer-padding, 28px clamp(20px, 4vw, 40px) 40px);
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  font-family: var(--gl-footer-font, inherit); font-size: 14px; line-height: 1.5; font-weight: 400; color: inherit;
  text-align: left; background: none;
}
gl-footer[compact] .glf {
  max-width: var(--gl-footer-width, none); margin: var(--gl-footer-margin, 0);
  padding: var(--gl-footer-padding, 9px clamp(16px, 3vw, 30px)); font-size: 12.5px; line-height: 1.4;
}
gl-footer[compact] .glf-name { font-size: 14px; }
gl-footer[compact] .glf-mark { width: 18px; height: 18px; }
gl-footer .glf a { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; }
gl-footer .glf-start { display: flex; align-items: center; gap: 10px; min-width: 0; }
gl-footer .glf-brand { display: inline-flex; align-items: center; gap: 10px; border-radius: 6px; }
gl-footer .glf-mark { display: block; width: 22px; height: 22px; flex: none; }
gl-footer .glf-name {
  font-family: "Fraunces GL", "Fraunces Variable", "Fraunces", "Iowan Old Style", Georgia, serif; font-size: 16px; font-weight: 600;
  line-height: 1; letter-spacing: -.01em;
}
gl-footer .glf-year { opacity: .5; }
gl-footer .glf-credit { margin: 0; text-align: center; opacity: .72; }
gl-footer .glf-heart {
  display: inline-block; color: #e46fb4; text-shadow: 0 0 12px rgba(228, 111, 180, .6);
  animation: glf-beat 1.8s ease-in-out infinite;
}
gl-footer .glf-links { justify-self: end; display: flex; gap: 22px; margin: 0; padding: 0; }
gl-footer .glf-links a { opacity: .72; transition: opacity .2s; }
gl-footer .glf-links a:hover, gl-footer .glf-brand:hover .glf-name { opacity: 1; }
gl-footer .glf-brand:hover .glf-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
gl-footer .glf a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@keyframes glf-beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1.05); } 45% { transform: scale(1.2); } }

gl-github { display: inline-flex; flex: none; vertical-align: middle; }
gl-github .glg {
  box-sizing: border-box; display: inline-grid; place-items: center;
  width: var(--gl-github-size, 36px); height: var(--gl-github-size, 36px); padding: 0; margin: 0; border: 0;
  border-radius: 10px; color: inherit; background: none; text-decoration: none; opacity: .72;
  transition: opacity .2s, background-color .2s;
}
gl-github .glg:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
gl-github .glg:focus-visible { opacity: 1; outline: 2px solid currentColor; outline-offset: 2px; }
gl-github .glg-mark { display: block; width: 20px; height: 20px; }

@media (max-width: 760px) {
  gl-footer .glf { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  gl-footer .glf-links { justify-self: center; }
  gl-footer .glf-credit { order: 3; }
  gl-footer[compact] .glf { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; padding: var(--gl-footer-padding, 7px 14px); }
  gl-footer[compact] .glf-credit { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  gl-footer .glf-heart { animation: none; }
  gl-footer .glf-links a, gl-github .glg { transition: none; }
}
@media print { gl-footer { display: none; } }
