/* "From the Community" strip on index.aspx and cr-dashboard.aspx. Cards drawn by CrCommunity.CarouselHtml. */
.cmc { grid-column: 1 / -1; margin: 6px 0 22px; min-width: 0; }
.cmc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cmc-title { margin: 0; font-size: 18px; font-weight: 700; color: #0f2744; font-family: var(--font-display, inherit); }
.cmc-nav { display: flex; align-items: center; gap: 6px; }
.cmc-arrow { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #d6dde7; background: #fff; color: #0f2744; font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 0 2px; }
.cmc-arrow:hover { border-color: #e8a020; background: #fffaf0; }
.cmc-all { font-size: 14px; font-weight: 700; color: #1d4ed8; text-decoration: none; margin-left: 4px; white-space: nowrap; }
.cmc-all:hover { text-decoration: underline; }

.cmc-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cmc-track::-webkit-scrollbar { display: none; }

.cmc-card { flex: 0 0 260px; scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; overflow: hidden; text-decoration: none; color: #1f2a37; transition: border-color .15s, box-shadow .15s; }
.cmc-card:hover { border-color: #e8a020; box-shadow: 0 4px 14px rgba(15,39,68,.10); }

.cmc-thumb { position: relative; aspect-ratio: 16 / 9; background: #e5e7eb; overflow: hidden; }
.cmc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmc-image .cmc-thumb { background: #f1f5f9; }
.cmc-image .cmc-thumb img { object-fit: contain; }
.cmc-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 32px; margin: -16px 0 0 -23px; border-radius: 9px; background: #e62117; }
.cmc-play::after { content: ""; position: absolute; left: 18px; top: 9px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.cmc-tile { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 14px; background: linear-gradient(135deg, #0b1d36 0%, #14355e 100%); color: #fff; }
.cmc-tile-icon { font-size: 20px; line-height: 1; }
.cmc-tile-text { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cmc-badge { position: absolute; left: 8px; bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.25); background: #e8a020; color: #0f2744; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .3px; }
.cmc-tile ~ .cmc-badge { top: auto; bottom: 8px; left: auto; right: 8px; }
.cmc-pin { position: absolute; right: 8px; top: 6px; font-size: 14px; }

.cmc-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1 1 auto; }
.cmc-text { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmc-meta { font-size: 12px; color: #64748b; }
.cmc-cta { margin-top: auto; align-self: flex-start; font-size: 13px; font-weight: 700; color: #0f2744; background: #e8a020; padding: 5px 12px; border-radius: 8px; }
.cmc-cta.cmc-done { background: #dcfce7; color: #166534; }

.cmc-more { align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 18px; background: #fff7e6; border-style: dashed; border-color: #f5d38a; }
.cmc-more-icon { font-size: 30px; }
.cmc-more-text { font-size: 16px; font-weight: 800; color: #0f2744; }
.cmc-more-sub { font-size: 13px; color: #64748b; }

@media (max-width: 640px) {
  .cmc-arrow { display: none; }
  .cmc-card { flex-basis: 78%; max-width: 280px; }
  .cmc-title { font-size: 16px; }
}
