/* OOS Bulletin listing: latest-issue banner + per-year cover galleries. */

.bulletin-banner {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.bulletin-banner img {
  width: 240px;
  height: 340px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.bulletin-banner .caption {
  display: block;
  margin-top: .5rem;
  font-weight: 600;
}

/* Keep the year tabs on a single line, scrolling horizontally if they overflow. */
#bulletin-years {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}
#bulletin-years .nav-link {
  white-space: nowrap;
}

.bulletin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.1rem;
  margin: 1rem 0 1.5rem;
}
.bulletin-cover {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.bulletin-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 240 / 340;
  object-fit: cover;
  transition: transform .12s ease, box-shadow .12s ease;
}
.bulletin-cover:hover img,
.bulletin-cover:focus-visible img {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .28);
}
.bulletin-cover .month {
  display: block;
  margin-top: .35rem;
  font-size: .9rem;
}

/* Placeholder for a missing past issue (not a link). */
.bulletin-missing {
  cursor: default;
}
.bulletin-missing .placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 240 / 340;
  padding: .5rem;
  border: 1px dashed var(--bs-border-color);
  border-radius: .25rem;
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  font-size: .8rem;
  text-align: center;
}
.bulletin-missing .month {
  color: var(--bs-secondary-color);
}
