.rally-roster-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 0 1rem;
}

.rally-roster-legend span {
  display: grid;
  grid-template-columns: 12px auto;
  gap: .1rem .55rem;
  align-items: center;
  padding: .7rem .8rem;
  border: 1px solid #d9ddd9;
  border-radius: 12px;
  background: #fff;
  color: #46524d;
  font-size: .82rem;
}

.rally-roster-legend i {
  grid-row: 1 / span 2;
  width: 12px;
  height: 32px;
  border-radius: 999px;
}

.rally-roster-legend strong { color: #153f35; }
.rally-roster-legend .national i { background: #d6a72b; }
.rally-roster-legend .provincial i { background: #3f8d62; }
.rally-roster-legend .regional i { background: #3979b8; }

.rally-card[class*="rally-type-"] {
  position: relative;
  overflow: hidden;
  border-left: 6px solid #3979b8;
}

.rally-card[class*="rally-type-"]::before {
  display: inline-flex;
  margin: .75rem .9rem 0;
  padding: .28rem .55rem;
  border-radius: 999px;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rally-card.rally-type-national {
  border-left-color: #d6a72b;
  background: linear-gradient(90deg, #fff9e8 0, #fff 26%);
}
.rally-card.rally-type-national::before { content: "National Rally"; background: #9b7410; }

.rally-card.rally-type-provincial {
  border-left-color: #3f8d62;
  background: linear-gradient(90deg, #eef9f2 0, #fff 26%);
}
.rally-card.rally-type-provincial::before { content: "Provincial Rally"; background: #287047; }

.rally-card.rally-type-regional {
  border-left-color: #3979b8;
  background: linear-gradient(90deg, #eef6ff 0, #fff 26%);
}
.rally-card.rally-type-regional::before { content: "Regional Rally"; background: #2b659e; }

.rally-source-note {
  padding: .8rem 1rem;
  border-left: 4px solid #3979b8;
  border-radius: 8px;
  background: #f3f8fb;
}

.publish-regional-rally {
  margin-top: 1rem;
  padding: .8rem;
  border: 1px solid #8fb6d9;
  border-radius: 12px;
  background: #f1f7fd;
}

.publish-regional-rally summary {
  cursor: pointer;
  color: #1e5a91;
  font-weight: 800;
}

.publish-regional-form { margin-top: .8rem; }
.publish-regional-waiting { margin: .8rem 0 0; color: #59655f; }

.suggested-rally-card {
  border-left: 6px solid #3979b8 !important;
  background: linear-gradient(90deg, #eef6ff 0, #fff 32%) !important;
}

.suggested-badge { background: #3979b8 !important; color: #fff !important; }

.rally-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 1.5rem;
  align-items: start;
}

.rally-card-main { min-width: 0; }

.rally-campsite-notes {
  margin-top: .15rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid #cbded6;
  border-left: 5px solid #287047;
  border-radius: 12px;
  background: #f0f8f4;
  box-shadow: 0 8px 24px rgba(23, 61, 52, .07);
}

.rally-campsite-notes small {
  display: block;
  color: #287047;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.rally-campsite-notes h4 {
  margin: .45rem 0 .65rem;
  color: #153f35;
  font: 1.15rem Georgia, serif;
}

.rally-campsite-notes p {
  margin: 0;
  color: #465b54;
  font-size: .9rem;
  line-height: 1.6;
}

.rally-notes-body{position:relative;max-height:11.2em;overflow:hidden}.rally-notes-body:not(.is-short)::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3.5em;background:linear-gradient(transparent,#f0f8f4)}.rally-campsite-notes.is-expanded .rally-notes-body{max-height:none}.rally-campsite-notes.is-expanded .rally-notes-body::after,.rally-notes-body.is-short::after{display:none}.rally-notes-more{margin-top:.75rem;padding:0;border:0;background:transparent;color:#21634f;font-weight:800;text-decoration:underline}.rally-notes-more[hidden]{display:none}

@media (max-width: 720px) {
  .rally-roster-legend { grid-template-columns: 1fr; }
  .rally-card-layout { grid-template-columns: 1fr; gap: 1rem; }
  .rally-campsite-notes { margin-top: 0; }
}
