/* Small, targeted fixes layered on top of main.css rather than edited into
   that legacy bundle directly, so they're easy to review/revert. */

/* Bootstrap's .table-responsive sets width:100%, which stretches the
   timetable to fill its container and left-aligns it under the centered
   "Print Timetable" button above it. Size it to its own content and center
   that instead; still scrolls horizontally on narrow screens. */
table.timetable.table-responsive {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ---- news / social page ---- */
.social-snapshot {
  margin-top: 1rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: left;
  overflow: hidden;
}

.social-card-image {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: var(--color-bg);
  margin: 0;
}

.social-card-body {
  padding: 1.5rem;
}

.social-card-date {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-red);
}

.social-card h3 {
  margin-bottom: 0.5rem;
}

.small-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.75;
}
