
/* Light-touch modernization for preserved historical event pages. */
:root {
  --archive-purple: #9a40ec;
  --archive-purple-dark: #67339b;
  --archive-magenta: #993366;
  --archive-lavender: #f6effd;
  --archive-ink: #34283a;
}
html { scroll-behavior: smooth; }
body.legacy-event-archive {
  margin: 0 !important;
  min-height: 100vh;
  color: var(--archive-ink);
  background: #f8f2fc url('../images/purplebgrsm.jpg') repeat !important;
  font-family: Arial, Helvetica, sans-serif;
}
.archive-toolbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 13px;
  padding: 11px 14px;
  background: linear-gradient(135deg, var(--archive-purple-dark), var(--archive-purple));
  box-shadow: 0 7px 18px rgba(79, 34, 100, .22);
}
.archive-toolbar a {
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}
.archive-toolbar a:hover,
.archive-toolbar a:focus-visible { text-decoration: underline !important; }
.archive-toolbar .archive-label { color: rgba(255,255,255,.82); font-size: 14px; }
.archive-notice {
  width: min(calc(100% - 26px), 800px);
  margin: 14px auto;
  padding: 10px 14px;
  border: 1px solid rgba(103, 51, 155, .19);
  border-radius: 12px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 7px 18px rgba(79, 34, 100, .08);
  color: #6e6174;
  font-size: 13px;
  line-height: 1.5;
}
body.legacy-event-archive > table,
body.legacy-event-archive > div:not(.archive-toolbar):not(.archive-notice) {
  max-width: 100% !important;
}
body.legacy-event-archive table { max-width: 100% !important; }
body.legacy-event-archive img { max-width: 100% !important; height: auto !important; }
body.legacy-event-archive td { overflow-wrap: anywhere; }
body.legacy-event-archive iframe { max-width: 100% !important; }
@media (max-width: 820px) {
  body.legacy-event-archive table[width="800"],
  body.legacy-event-archive table[width="801"],
  body.legacy-event-archive table[width="770"],
  body.legacy-event-archive table[width="771"] { width: 100% !important; }
  body.legacy-event-archive td { max-width: 100vw; }
  .archive-toolbar { gap: 6px 10px; padding: 10px 9px; }
  .archive-toolbar a, .archive-toolbar .archive-label { font-size: 12px; }
}
