/* Public community previews: compact profile tiles and readable activity rows. */
.community-block { padding-block: 12px 40px; }
.community-block .live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.community-block :is(.community-card, .happening-card) {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 26px;
    border: 1px solid #e3dcf6;
    border-radius: 24px;
    background: radial-gradient(ellipse at 100% 0, #f3efff, transparent 58%), #fff;
    box-shadow: 0 8px 28px #39257308;
    overflow: hidden;
}
.community-block :is(.community-card, .happening-card)::before { content: ''; position: absolute; top: 0; inset-inline: 24px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #32bee9, #6550d8); }
.community-block .happening-card::before { background: linear-gradient(90deg, #6550d8, #cd55ad, #ffa652); }
.community-block .section-header { margin-bottom: 22px; }
.community-block .section-kicker { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .14em; margin-bottom: 10px; }
.community-block .section-kicker::before { content: ''; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #6550d8; box-shadow: 0 0 0 4px #6550d80c; }
.community-block :is(.community-card, .happening-card) h2 { font-size: clamp(23px, 2.1vw, 28px); line-height: 1.2; letter-spacing: -.035em; }
.community-block .section-header p { font-size: 13px; line-height: 1.6; margin-top: 9px; max-width: 42ch; }
.community-block .community-profiles { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 12px; }
.community-block .community-profile {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 3px 12px;
    align-items: center;
    min-height: 92px;
    padding: 13px;
    border: 1px solid #eae5f6;
    border-radius: 17px;
    background: #fff;
    text-align: start;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.community-block .community-profile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.community-block .community-photo { grid-column: 1; grid-row: 1 / 3; width: 60px; height: 60px; margin: 0; }
.community-block .community-photo img { display: block; width: 60px; height: 60px; border: 3px solid #fff; outline: 1px solid #dfd6f4; box-shadow: 0 3px 9px #39257312; }
.community-block .community-status { right: 1px; bottom: 1px; width: 13px; height: 13px; border: 3px solid #fff; }
.community-block .community-name { grid-column: 2; grid-row: 1; align-self: end; color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.community-block .community-country { grid-column: 2; grid-row: 2; align-self: start; font-size: 12px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.community-block .happening-events { display: grid; gap: 10px; flex: 1; align-content: center; }
.community-block .happening-event { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; gap: 5px 12px; padding: 14px; border: 1px solid #eae5f6; border-radius: 16px; background: linear-gradient(110deg, #faf8ff, #fff); }
.community-block .happening-avatar { grid-column: 1; grid-row: 1 / 3; width: 42px; height: 42px; border: 2px solid #fff; outline: 1px solid #e2d9f5; }
.community-block .happening-copy { display: contents; }
.community-block .happening-meta { grid-column: 2; grid-row: 1; min-width: 0; gap: 4px 8px; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.community-block .happening-name { font-size: 12px; font-weight: 750; }
.community-block .happening-description { grid-column: 2 / -1; grid-row: 2; font-size: 13px; line-height: 1.55; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.community-block .happening-time { grid-column: 3; grid-row: 1; padding-top: 1px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.community-block .community-card-footer { display: flex; margin-top: 22px; padding-top: 16px; border-top: 1px solid #eae5f6; }
.community-block .community-card-footer .text-link { justify-content: space-between; gap: 14px; min-height: 44px; width: 100%; font-size: 13px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
    .community-block .community-profile:hover { border-color: #bba9ec; background: #faf8ff; box-shadow: 0 6px 14px #4830800e; transform: translateY(-2px); }
    .community-block .community-card-footer .text-link:hover { color: #443094; }
}
.community-block .community-profile:focus-visible { outline: 3px solid #6550d8; outline-offset: 3px; }
@media (max-width: 1000px) and (min-width: 851px) {
    .community-block :is(.community-card, .happening-card) { padding: 22px; }
    .community-block .community-profile { grid-template-columns: 48px minmax(0, 1fr); gap: 3px 8px; padding: 10px; }
    .community-block .community-photo, .community-block .community-photo img { width: 48px; height: 48px; }
}
@media (max-width: 850px) { .community-block .live-grid { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 480px) {
    .community-block :is(.community-card, .happening-card) { padding: 22px 18px 16px; border-radius: 20px; }
    .community-block .section-header { margin-bottom: 18px; }
    .community-block .community-profiles { gap: 10px; }
    .community-block .community-profile { display: flex; flex-direction: column; gap: 6px; min-height: 144px; padding: 14px 10px; text-align: center; }
    .community-block .community-name, .community-block .community-country { align-self: center; }
    .community-block .community-name { margin-top: 3px; }
    .community-block .community-country { font-size: 11px; }
    .community-block .happening-event { grid-template-columns: 36px minmax(0, 1fr); gap: 6px 10px; padding: 12px; }
    .community-block .happening-avatar { width: 36px; height: 36px; }
    .community-block .happening-description { grid-column: 2; }
    .community-block .happening-time { grid-column: 2; grid-row: 3; }
    .community-block .community-card-footer { margin-top: 18px; padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .community-block .community-profile { transition: none; } .community-block .community-profile:hover { transform: none; } }
