/* Shared document footer: never fixed over page content or mobile controls. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main.page { flex: 1 0 auto; }
.gebrabit-site-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 22px max(16px, env(safe-area-inset-right)) 18px max(16px, env(safe-area-inset-left));
  border-top: 1px solid #dce8e3;
  background: #f8fbfa;
  color: #54706d;
  font-family: "IRANSans", sans-serif;
  text-align: center;
  line-height: 1.9;
}
.gebrabit-site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.gebrabit-site-footer a { color: #0b594d; text-decoration: none; }
.gebrabit-site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px; }
.gebrabit-site-footer a:hover { text-decoration: underline; }
.gebrabit-site-footer a:focus-visible { outline: 2px solid #117c68; outline-offset: 4px; border-radius: 4px; }
.gebrabit-site-footer p { margin: 10px 0 0; font-size: 13px; }
/* Home formerly included its footer within this full-height section. */
.home-search-page { min-height: 0; padding-bottom: 32px; }
@media (max-width: 760px) {
  .gebrabit-site-footer { font-size: 13px; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .gebrabit-site-footer nav { gap: 2px 12px; }
}
