/* Keep the community visual language; align the two event columns. */
.activity-list { grid-auto-rows:auto; grid-template-rows:none; align-content:start; }
.activity-card,.events-all-list .activity-card { display:flex; align-items:center; }
.activity-card-inner { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr); gap:22px; width:100%; min-width:0; align-items:stretch; }
.activity-list .activity-card-inner { grid-template-columns:minmax(0,.75fr) minmax(0,1.35fr); }
.activity-card .event-image-link,.activity-card .event-figure { height:100%; }
.activity-card .activity-cover.event-image { height:100%; min-height:0; aspect-ratio:16/9; }
.activity-card .activity-cover.complete-game { aspect-ratio:1064/815; }
.activity-card .activity-cover.complete-shenzhen { aspect-ratio:2798/1182; }
.activity-card .event-image img { position:absolute; inset:0; }
.activity-card .event-image.poster { background:#f52c32; }
.activity-card .event-image.poster img { object-fit:cover; object-position:top; }
.activity-card .event-image.complete-game img,.activity-card .event-image.complete-shenzhen img { object-fit:contain; }
.activity-card .event-figure figcaption { display:none; }
.activity-card-body { align-self:stretch; }
.activity-card-body h3 { margin-top:0; }
/* Extend the title's native link across the card; keep registration independent. */
.activity-card { position:relative; isolation:isolate; transition:border-color 160ms ease, box-shadow 160ms ease; }
.activity-card,.activity-card * { cursor:pointer; }
.activity-card-body h3 a::after { content:""; position:absolute; inset:0; z-index:1; border-radius:inherit; }
.activity-card .activity-signup { position:relative; z-index:2; }
.activity-card:is(:hover,:focus-within) { border-color:#c9cfff; box-shadow:0 8px 24px rgba(60,65,105,.10); }
@media (prefers-reduced-motion:reduce) { .activity-card { transition:none; } }
.community-news .news-list { display:flex; flex-direction:column; justify-content:flex-start; gap:0; }
.community-news .news-item { flex:1 0 auto; padding:0 0 16px 24px; min-height:0; }
.community-news .news-item:last-child { flex:0 0 auto; padding-bottom:0; }
.community-news .news-more { flex:0 0 auto; height:auto; margin-top:20px; padding-top:0; }
.community-news .news-item::before { z-index:1; top:6px; background:#fff; }
.community-news .news-item:not(:last-child)::after { display:block; top:10px; bottom:-10px; left:4.5px; }
.community-news .news-title { font-size:14px; line-height:1.5; }
.community-news .news-meta { font-size:12px; line-height:1.5; margin-top:6px; }
.community-news .news-title-text { overflow:visible; white-space:normal; }
.feedback-directions strong { font-size:clamp(14px,1.3vw,18px); white-space:nowrap; }
.feedback-directions .co-build-stat { display:flex; flex-direction:column; gap:8px; }
.feedback-directions .co-build-stat span { font-size:12px; line-height:1.6; }
.footer-root .footer-top-content .doc-content .doc-content-section:last-child { width:auto; min-width:0; }
.hero-visual-motion { animation:community-hero-float 7s ease-in-out infinite; }
.hero-motion-paused .hero-visual-motion { animation-play-state:paused; }
.hero-motion-toggle { position:absolute; right:20px; bottom:16px; z-index:4; display:grid; place-items:center; width:32px; height:32px; padding:0; border:1px solid #aeb3c45c; border-radius:50%; background:#ffffffb8; color:#666b78; font-size:15px; line-height:1; }
.hero-motion-toggle:hover { background:#fff; color:#222; }
/* The source's old date starts below y=710: only show the artwork above it. */
.activity-cover.event-image.game-no-date,.activity-card .activity-cover.event-image.game-no-date { aspect-ratio:1064/710; background:#174bf2; }
.event-image.game-no-date img { width:100%; height:auto; max-height:none; object-fit:fill; object-position:top; clip-path:inset(0 0 13% 0); }
.event-image.game-no-date { overflow:hidden; }
.step-card[href],.starter-guide[href] { cursor:pointer; text-decoration:none; }
.step-card[href] *, .starter-guide[href] *,
.contribution-card[href], .contribution-card[href] *,
.doc-mini-card[href], .doc-mini-card[href] * { cursor:pointer; }
.step-card:not([href]) { cursor:default; }
.steps .step-card { contain:layout paint; }
@keyframes community-hero-float { 0%,100% { translate:0 0; } 50% { translate:0 -14px; } }
@media (max-width:1100px) {
  .activity-list { grid-template-rows:none; }
  .community-news .news-list { display:flex; }
  .community-news .news-item { flex:0 0 auto; }
}
@media (max-width:640px) {
  .activity-card-inner,.activity-list .activity-card-inner { grid-template-columns:1fr; gap:18px; }
  .activity-card .activity-cover.event-image { height:auto; min-height:0; aspect-ratio:16/9; }
  .activity-card .activity-cover.complete-game { aspect-ratio:1064/815; }
  .activity-card .activity-cover.complete-shenzhen { aspect-ratio:2798/1182; }
  .activity-card-body { height:auto; }
}
