/*
  Shared site chrome for every page on bitdevs.magicinternetmath.com:
  the top bar (.site-bar) and footer (.site-footer), both carrying the MIM logo.
  Self-contained values so it renders the same on pages with their own CSS variables.
*/
.site-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 52px;
  padding: 0 1.5rem;
  background: #181c25;
  border-bottom: 1px solid #2a2f3b;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  box-sizing: border-box;
}
.site-bar .site-left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.site-logo-link { display: inline-flex; flex-shrink: 0; border: 0 !important; line-height: 0; }
.site-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #2a2f3b;
  display: block;
}
.site-bar .site-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: #e6e9ef !important;
  text-decoration: none !important;
  border: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-brand .pre { color: #2bd5b3; }
.site-brand .post { color: #7d8597; font-weight: 400; }
.site-bar .site-back {
  font-size: 0.8rem;
  color: #7d8597 !important;
  text-decoration: none !important;
  border: 0 !important;
  white-space: nowrap;
}
.site-bar .site-back:hover { color: #e6e9ef !important; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 4rem;
  padding: 1.75rem 1.5rem;
  border-top: 1px solid #2a2f3b;
  background: #11141b;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: #7d8597;
  text-align: center;
}
.site-footer a { color: #2bd5b3 !important; text-decoration: none !important; border: 0 !important; }
.site-footer a:hover { text-decoration: underline !important; }

@media (max-width: 520px) {
  .site-bar { padding: 0 1rem; }
  .site-bar .site-brand .post { display: none; }
}
