/* Wayback-style Canadian category — grid, non-intrusive */
body.legacy-ca-cat {
  margin: 0;
  font-family: system-ui,Segoe UI,Tahoma,sans-serif;
  background: #eef2f6;
  color: #1e293b;
  line-height: 1.5;
}
.legacy-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #dbe3ef;
}
.legacy-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #15803d;
  text-decoration: none;
}
.legacy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
}
.legacy-nav a { color: #1d4ed8; text-decoration: none; font-weight: 600; }
.legacy-nav a:hover { text-decoration: underline; }
.legacy-banner {
  background: #64748b;
  color: #fff;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.legacy-banner-label { font-size: 0.9rem; opacity: 0.9; }
.legacy-banner-title {
  margin: 6px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
}
.legacy-banner-note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  opacity: 0.92;
  max-width: 720px;
}
.legacy-wrap { max-width: 1100px; margin: 0 auto; padding: 0 12px 32px; }
.legacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.legacy-card {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
}
.legacy-card-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.35;
}
.legacy-card-title a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}
.legacy-card-title a:hover { color: #1d4ed8; text-decoration: underline; }
.legacy-card-text {
  margin: 0;
  font-size: 0.78rem;
  color: #475569;
  text-align: left;
}
.legacy-card-live {
  margin: 10px 0 0;
  font-size: 0.78rem;
}
.legacy-card-live a { color: #15803d; font-weight: 700; }
.legacy-foot {
  text-align: center;
  padding: 20px 12px;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.legacy-foot a { color: #1d4ed8; }
