/* Scoped to activity_details.php: no changes to other pages or admin. */
.cmuaa-page-activity-details .cmuaa-cta { display: none; }
.cmuaa-related { margin-top: 48px; }
.cmuaa-related-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.cmuaa-main .cmuaa-related-heading h2 { margin: 0; padding: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.4; }
.cmuaa-related-heading > a { flex-shrink: 0; padding: 10px 0; color: #6f2c91; font-size: 15px; font-weight: 700; }
.cmuaa-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cmuaa-related-card { min-width: 0; border: 1px solid #e8e3ec; border-radius: 24px; background: #fff; overflow: hidden; }
.cmuaa-related-card > a { display: flex; flex-direction: column; height: 100%; color: #29262d; }
.cmuaa-related-media { position: relative; aspect-ratio: 16 / 10; background: #f0ebf5; overflow: hidden; }
.cmuaa-related-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #6f2c91; font-size: 24px; font-weight: 700; }
.cmuaa-related-placeholder > span { font-size: 13px; color: #66596e; font-weight: 400; }
.cmuaa-related-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.cmuaa-related-copy { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.cmuaa-main .cmuaa-related-date { margin: 0 0 10px; color: #66596e; font-size: 13px; }
.cmuaa-main .cmuaa-related-copy h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0; padding: 0; color: #29262d; font-size: 21px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.cmuaa-related-read { display: block; margin-top: auto; padding-top: 22px; color: #6f2c91; font-size: 14px; font-weight: 700; }
.cmuaa-related-card:hover { border-color: #b697c7; box-shadow: 0 8px 24px rgba(53,20,71,.07); }
.cmuaa-related a:focus-visible { outline: 3px solid #6f2c91; outline-offset: -4px; }
.cmuaa-related a:active { background-color: #f7f3fa; }
.cmuaa-related-heading > a:hover { text-decoration: underline; }
.cmuaa-related-empty { padding: 28px; border-radius: 20px; background: #fff; }
@media (max-width: 767px) {
  .cmuaa-related-grid { grid-template-columns: 1fr; gap: 20px; }
  .cmuaa-related-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .cmuaa-related { margin-top: 32px; }
}
