/* Static institutional links generated from tools/site-footer.html.in. */
.bri-site-footer {
  box-sizing: border-box;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 24px 16px;
  border-top: 1px solid var(--border-strong, var(--border));
  color: var(--text-muted, var(--muted, var(--text)));
  font-family: 'Open Sans', sans-serif;
  font-size: .875rem;
  line-height: 1.6;
  text-align: center;
  flex-shrink: 0;
  clear: both;
  order: 99;
}
.bri-site-footer p { margin: 0; }
.bri-site-footer a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.bri-site-footer a:hover { color: var(--accent); }
.bri-site-footer a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 3px;
}
.bri-site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.bri-site-footer .bri-site-footer-name { font-weight: 600; }
/* Keep the full-height app itself unchanged. Its panes still scroll
   independently; the outer document can continue to this footer below it. */
body.bri-footer-scroll {
  height: auto;
  min-height: 100dvh;
  overflow-x: clip;
  overflow-y: visible;
}
html:has(> body.bri-footer-scroll) { overflow-x: clip; }
.bri-footer-viewport {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  flex: 0 0 auto;
}
/* The month grid fills a viewport before the footer, including tall screens. */
.bri-footer-calendar > .container {
  min-height: 100vh;
  min-height: 100dvh;
  flex: 0 0 auto;
}
body.bri-footer-carousel { height: auto; }
.bri-footer-carousel > .stage-wrap { flex: 0 0 auto; }
/* The host book-reader page supplies the footer for its embedded chat. */
body.reader-chat.bri-footer-scroll { height: 100dvh; overflow: hidden; }
.reader-chat .bri-site-footer { display: none; }
@media (max-width: 480px) {
  .bri-site-footer { padding: 20px 8px; }
  .bri-site-footer nav ul { gap: 0 4px; }
}
@media print { .bri-site-footer { display: none; } }
