/* Today-in-history banner (thin, centered, theme-aware) */

.today-banner {
  /* light theme defaults */
  background: #fff8e1;
  border-top: 1px solid #efe2b8;
  border-bottom: 1px solid #efe2b8;
  color: #3e3421;
  font-size: 0.95rem;
}

.today-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.4rem 1rem;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;   /* center everything horizontally */
  text-align: center;        /* center multi-line text */
  flex-wrap: wrap;           /* wrap nicely on small screens */
}

.today-banner__label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}

.today-banner__text {
  line-height: 1.3;
}

.today-banner__link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Small screens: stack vertically with tighter spacing */
@media (max-width: 640px) {
  .today-banner__inner {
    gap: 6px;
    padding: 0.35rem 0.75rem;
  }
  .today-banner__label {
    font-size: 0.85rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .today-banner {
    background: #242833;
    border-top: 1px solid #2c3240;
    border-bottom: 1px solid #2c3240;
    color: #e8e8ea;
  }
  .today-banner__label {
    background: rgba(255, 255, 255, 0.08);
  }
}
