/* --- Top Telegram community banner --- */

:root {
  --tg-banner-col: #2aabee;
  --tg-banner-height: 2.375rem;
}

@media (max-width: 575px) {
  :root {
    --tg-banner-height: 2.125rem;
  }
}

/* Reserve the banner's height at the top of the page. `body` is a flex column,
   so the spacer must not shrink. */
.top-telegram-banner-spacer {
  flex: 0 0 auto;
  height: var(--tg-banner-height);
}

.navbar-custom.fixed-top {
  top: var(--tg-banner-height);
}

.top-telegram-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1031; /* just above Bootstrap's .fixed-top (1030) */
  display: block;
  height: var(--tg-banner-height);
  background-color: #111111;
  border-bottom: 1px solid #2aabee;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.top-telegram-banner:hover,
.top-telegram-banner:focus {
  background-color: #1c2a33;
  text-decoration: none;
}

.banner-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.banner-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--header-font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03125rem;
  line-height: 1.2;
  color: #e2e8f0;
  text-align: center;
}

.telegram-icon {
  color: var(--tg-banner-col);
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .banner-text {
    font-size: 0.75rem;
    gap: 0.375rem;
  }

  .telegram-icon {
    width: 0.875rem;
    height: 0.875rem;
  }
}
