.community-detail-page {
    margin: 32px auto 96px;
    padding: 0 16px;
}

.community-hero-card {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.community-hero-cover {
    position: relative;
    overflow: hidden;
    background: #eef3f8;
}

.community-hero-cover img,
.community-hero-cover__fallback {
    width: 100%;
    height: 100%;
    display: block;
}

.community-hero-cover img {
    object-fit: cover;
    filter: none;
}

.community-hero-cover__fallback {
    background:
        radial-gradient(circle at 20% 42%, rgba(249, 115, 22, 0.18), transparent 24%),
        radial-gradient(circle at 78% 26%, rgba(59, 130, 246, 0.14), transparent 26%),
        linear-gradient(135deg, #f8fafc 0%, #e7eef6 50%, #f6f8fb 100%);
}

.community-hero-back,
.community-detail-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.community-hero-back {
    position: absolute;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    color: #071225;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.community-hero-back:hover {
    transform: translateX(-2px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.community-hero-actions {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.community-detail-action {
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.community-detail-action--light {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: #344054;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(12px);
}

.community-detail-action--light:hover {
    background: #ffffff;
    color: #071225;
}

.community-detail-action--orange {
    border: 1px solid #ff6b1a;
    background: #ff6b1a;
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(255, 107, 26, 0.28);
}

.community-detail-action--orange:hover {
    background: #f25f0d;
    border-color: #f25f0d;
    transform: translateY(-1px);
}

.community-detail-action.is-joined:hover {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #f97316;
}

.community-hero-identity {
    display: grid;
    align-items: end;
    position: relative;
    z-index: 2;
}

.community-hero-avatar-stack {
    grid-row: 1 / span 2;
    align-self: start;
}

.community-hero-avatar {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.community-hero-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.community-hero-copy {
    min-width: 0;
    padding-bottom: 10px;
}

.community-hero-copy h1 {
    margin: 0;
    color: #101828;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.community-hero-copy p {
    max-width: 840px;
    margin: 14px 0 0;
}

.community-hero-pills {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
}

.community-hero-tags {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.community-hero-tags span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 900;
}

.community-hero-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f2f4f7;
    color: #667085;
    line-height: 1;
    font-weight: 800;
}

.community-hero-pill--orange {
    background: #fff3ea;
    color: #f26522;
}

.community-club-panel {
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.06);
}

.community-club-panel__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.community-club-panel__header p {
    margin: 0 0 4px;
    color: #f97316;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.community-club-panel__header h2 {
    margin: 0;
    color: #101828;
    font-size: 24px;
    line-height: 1.08;
    font-weight: 950;
}

.community-inline-form {
    display: grid;
    gap: 12px;
    border: 1px solid #eef2f7;
    border-radius: 22px;
    background: #f8fafc;
    padding: 16px;
    margin-bottom: 16px;
}

.community-announcement-list,
.community-idea-list {
    display: grid;
    gap: 10px;
}

.community-announcement-card,
.community-idea-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    background: #ffffff;
    padding: 16px;
}

.community-announcement-card.is-important {
    border-color: #fed7aa;
    background: #fff7ed;
}

.community-announcement-card p,
.community-idea-card p {
    margin: 0 0 4px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
}

.community-announcement-card h3,
.community-idea-card h3 {
    margin: 0;
    color: #101828;
    font-size: 16px;
    font-weight: 950;
}

.community-announcement-card span,
.community-idea-card span {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.community-announcement-card small,
.community-idea-card small {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.community-idea-card a {
    display: inline-flex;
    margin-top: 8px;
    color: #f97316;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.community-idea-card button {
    display: inline-flex;
    min-width: 112px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
    color: #475569;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 950;
    cursor: pointer;
}

.community-idea-card button.is-active {
    border-color: #f97316;
    background: #f97316;
    color: #ffffff;
}

.community-soft-empty {
    border: 1px dashed #d9e0ea;
    border-radius: 18px;
    background: #f8fafc;
    color: #94a3b8;
    padding: 18px;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
}

.community-side-chat-link {
    display: grid;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.community-side-chat-link span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #fff7ed;
    color: #f97316;
}

.community-side-chat-link svg {
    width: 22px;
    height: 22px;
}

.community-side-chat-link strong {
    color: #101828;
    font-size: 16px;
    font-weight: 950;
}

.community-side-chat-link small {
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 800;
}

.community-side-analytics > div:last-child {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.community-side-analytics span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 14px;
    background: #f8fafc;
    color: #667085;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 900;
}

.community-side-analytics b {
    color: #101828;
    font-size: 17px;
}

.community-ride-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.community-ride-extra span {
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 900;
}

.community-ride-safety {
    display: grid;
    gap: 8px;
    border: 1px solid #fee2e2;
    border-radius: 18px;
    background: #fff7ed;
    padding: 12px;
    margin-bottom: 12px;
}

.community-ride-safety p {
    margin: 0;
    color: #7c2d12;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 800;
}

.community-ride-safety div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.community-ride-safety div span {
    border-radius: 999px;
    background: #ffffff;
    color: #9a3412;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 900;
}

.community-detail-tabs {
    display: flex;
    align-items: center;
    overflow-x: auto;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    scrollbar-width: none;
}

.community-detail-tabs::-webkit-scrollbar {
    display: none;
}

.community-detail-tabs a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    line-height: 1;
    letter-spacing: 0;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.community-detail-tabs a:hover,
.community-detail-tabs a.is-active {
    background: #071225;
    color: #ffffff;
}

.community-detail-section {
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    background: #ffffff;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.community-detail-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.community-detail-section__header p,
.community-side-card__eyebrow {
    margin: 0 0 6px;
    color: #f97316;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.community-detail-section__header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: 0;
}

.community-feed-block {
    min-width: 0;
}

.community-feed-heading {
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .community-feed-heading {
        margin-bottom: 24px;
    }
}

.community-feed-list {
    min-width: 0;
}

.community-quick-note-card {
    margin-bottom: 16px;
}

.community-quick-note-card__row {
    display: flex;
    gap: 12px;
}

.community-quick-note-card__avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f2f4f7;
}

.community-quick-note-card__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.community-quick-note-card__input {
    min-width: 0;
    flex: 1 1 auto;
}

.community-quick-note-card__input textarea {
    width: 100%;
    min-height: 42px;
    max-height: 170px;
    resize: none;
    border: 0;
    background: transparent;
    color: #0f172a;
    padding: 8px 0 4px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    outline: none;
}

.community-quick-note-card__input textarea::placeholder {
    color: #98a2b3;
}

.community-quick-note-card__input p {
    margin: 0;
    color: #98a2b3;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
}

.community-quick-note-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f2f4f7;
}

.community-quick-note-card__attach,
.community-quick-note-card__actions button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 13px;
    padding: 0 14px;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.community-quick-note-card__attach {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #667085;
}

.community-quick-note-card__attach input {
    display: none;
}

.community-quick-note-card__attach svg {
    width: 16px;
    height: 16px;
}

.community-quick-note-card__actions button {
    border: 0;
    background: #ff6b1a;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(255, 107, 26, 0.2);
}

.community-rides-section {
    border: 1px solid #e8ecf2;
    border-radius: 34px;
    background: #ffffff;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.community-rides-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.community-rides-header p {
    margin: 0 0 8px;
    color: #ff6b1a;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.community-rides-header h2 {
    margin: 0;
    color: #071225;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 950;
}

.community-rides-header button,
.community-rides-empty button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 16px;
    background: #ff6b1a;
    color: #ffffff;
    padding: 0 18px;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 28px rgba(255, 107, 26, 0.2);
    cursor: pointer;
}

.community-rides-header button svg {
    width: 17px;
    height: 17px;
}

.community-rides-grid {
    display: grid;
    gap: 16px;
}

.community-ride-card {
    display: grid;
    border: 1px solid #e5e7eb;
    background: linear-gradient(145deg, #ffffff 0%, #fffaf7 100%);
    transition: opacity 180ms ease, transform 180ms ease;
}

.community-ride-card__date {
    display: grid;
    place-items: center;
    align-content: center;
    background: #fff1e8;
    color: #ff6b1a;
}

.community-ride-card__date strong {
    line-height: 0.95;
    font-weight: 950;
}

.community-ride-card__date span {
    margin-top: 6px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.community-ride-card__body {
    min-width: 0;
}

.community-ride-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.community-ride-card__top p {
    margin: 0 0 7px;
    color: #667085;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}

.community-ride-card__top h3 {
    margin: 0;
    color: #071225;
    line-height: 1.15;
    font-weight: 950;
}

.community-ride-card__badges {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.community-ride-card__badges > span {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #ffffff;
    color: #ff6b1a;
    padding: 9px 11px;
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
}

.community-ride-status {
    border: 1px solid #fed7aa;
}

.community-ride-status--completed {
    border-color: #bbf7d0;
    background: #ecfdf3 !important;
    color: #16a34a !important;
}

.community-ride-card__description {
    margin: 14px 0 0;
    color: #475467;
    line-height: 1.45;
    font-weight: 650;
}

.community-ride-participation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.community-ride-join-btn,
.community-ride-award-open,
.community-ride-participants-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.community-ride-join-btn,
.community-ride-award-open {
    gap: 9px;
    background: #071225;
    color: #ffffff;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.community-ride-join-btn svg,
.community-ride-award-open svg {
    width: 17px;
    height: 17px;
}

.community-ride-join-btn:hover,
.community-ride-award-open:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(7, 18, 37, 0.16);
}

.community-ride-join-btn.is-active {
    background: #ecfdf3;
    color: #16a34a;
    box-shadow: inset 0 0 0 1px #bbf7d0;
}

.community-ride-award-open {
    background: #fff7ed;
    color: #f97316;
    box-shadow: inset 0 0 0 1px #fed7aa;
}

.community-ride-participants-trigger {
    min-width: 0;
    gap: 12px;
    background: #f8fafc;
    color: #475467;
}

.community-ride-participants-trigger:hover {
    background: #eef2f7;
    color: #071225;
}

.community-ride-participants-avatars {
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.community-ride-participants-avatars img,
.community-ride-participants-empty-icon {
    flex: 0 0 auto;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #e5e7eb;
    object-fit: cover;
    margin-left: -10px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.community-ride-participants-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
}

.community-ride-participants-empty-icon svg {
    width: 18px;
    height: 18px;
}

.community-ride-participants-text {
    min-width: 0;
    display: grid;
    gap: 3px;
    text-align: left;
}

.community-ride-participants-text strong {
    overflow: hidden;
    color: #101828;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 900;
}

.community-ride-participants-text small {
    color: #98a2b3;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.community-ride-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.community-ride-card__footer span {
    color: #98a2b3;
    font-size: 12px;
    font-weight: 850;
}

.community-ride-status-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.community-ride-status-control span {
    color: #98a2b3;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.community-ride-status-control select {
    min-height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    color: #071225;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 850;
    outline: none;
}

.community-ride-card__footer a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #071225;
    color: #ffffff;
    padding: 0 14px;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.community-delete-inline {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #ffe4e6;
    background: #fff1f2;
    color: #e11d48;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.community-delete-inline svg {
    width: 15px;
    height: 15px;
}

.community-delete-inline:hover:not(:disabled) {
    border-color: #e11d48;
    background: #e11d48;
    color: #ffffff;
}

.community-delete-inline:disabled {
    cursor: wait;
    opacity: 0.68;
}

.community-ride-card.is-removing,
.community-club-route-card.is-removing {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.community-rides-empty {
    border: 1px dashed #e5e7eb;
    border-radius: 26px;
    background: #f8fafc;
    padding: 34px 24px;
    text-align: center;
}

.community-rides-empty h3 {
    margin: 0;
    color: #071225;
    font-size: 20px;
    font-weight: 950;
}

.community-rides-empty p {
    max-width: 520px;
    margin: 8px auto 18px;
    color: #667085;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.community-club-routes-section {
    border: 1px solid #e8ecf2;
    border-radius: 34px;
    background: #ffffff;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.community-club-routes-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.community-club-routes-header p {
    margin: 0 0 8px;
    color: #ff6b1a;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.community-club-routes-header h2 {
    margin: 0;
    color: #071225;
    font-size: 30px;
    line-height: 1.08;
    font-weight: 950;
}

.community-club-routes-header button,
.community-club-routes-empty button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 16px;
    background: #ff6b1a;
    color: #ffffff;
    padding: 0 18px;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 28px rgba(255, 107, 26, 0.2);
    cursor: pointer;
}

.community-club-routes-header button svg {
    width: 17px;
    height: 17px;
}

.community-club-routes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-club-route-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.07);
    transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.community-club-route-card:hover {
    transform: translateY(-3px);
    border-color: #d7dde7;
    box-shadow: 0 20px 42px rgba(16, 24, 40, 0.12);
}

.community-club-route-card__media {
    position: relative;
    overflow: hidden;
    background: #0b1830;
}

.community-club-route-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 18, 37, 0.08) 0%, rgba(7, 18, 37, 0.48) 100%);
    pointer-events: none;
}

.community-club-route-card__media img,
.community-club-route-card__fallback {
    width: 100%;
    height: 100%;
    display: block;
}

.community-club-route-card__media img {
    object-fit: cover;
}

.community-club-route-card__fallback {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 22% 24%, rgba(255, 107, 26, 0.28), transparent 24%),
        radial-gradient(circle at 82% 20%, rgba(37, 99, 235, 0.18), transparent 24%),
        linear-gradient(145deg, #101828 0%, #1d2939 54%, #4b260f 100%);
    color: #ffffff;
}

.community-club-route-card__fallback svg {
    width: 76px;
    height: 76px;
    opacity: 0.9;
}

.community-route-status {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    padding: 0 13px;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 24px rgba(7, 18, 37, 0.16);
    backdrop-filter: blur(10px);
}

.community-route-status--completed {
    background: rgba(236, 253, 243, 0.96);
    color: #16a34a;
}

.community-route-status--not_completed {
    background: rgba(255, 247, 237, 0.96);
    color: #f97316;
}

.community-club-route-card__body {
    display: grid;
}

.community-club-route-card__body h3 {
    margin: 0;
    color: #071225;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.community-club-route-card__body p {
    margin: 0;
    color: #667085;
    line-height: 1.42;
    font-weight: 650;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.community-club-route-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.community-club-route-card__meta span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    padding: 0 11px;
    font-size: 12px;
    line-height: 1;
    font-weight: 850;
}

.community-club-route-card__meta span:nth-child(2) {
    background: #fff1e8;
    color: #ff6b1a;
}

.community-club-route-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #f2f4f7;
    padding-top: 16px;
}

.community-club-route-card__footer a {
    display: inline-flex;
    min-height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 15px;
    background: #071225;
    color: #ffffff;
    padding: 0 15px;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.community-club-route-card__footer > a:last-child {
    margin-left: auto;
}

.community-club-route-card__footer a svg {
    width: 16px;
    height: 16px;
}

.community-club-route-note {
    min-width: 0;
    overflow: hidden;
    color: #98a2b3;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1;
    font-weight: 850;
}

.community-route-status-control {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.community-route-status-control > span {
    color: #98a2b3;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.community-route-status-control select {
    min-height: 38px;
    max-width: 148px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    color: #071225;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 850;
    outline: none;
}

.community-club-routes-empty {
    display: grid;
    justify-items: center;
    border: 1px dashed #d7dde7;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 107, 26, 0.12), transparent 32%),
        #f8fafc;
    padding: 46px 24px;
    text-align: center;
}

.community-club-routes-empty > div {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 26px;
    background: #fff1e8;
    color: #ff6b1a;
    box-shadow: 0 16px 28px rgba(255, 107, 26, 0.16);
}

.community-club-routes-empty svg {
    width: 38px;
    height: 38px;
}

.community-club-routes-empty h3 {
    margin: 22px 0 0;
    color: #071225;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 950;
}

.community-club-routes-empty p {
    max-width: 590px;
    margin: 10px auto 20px;
    color: #667085;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
}

.community-detail-section--overview {
    border-color: #e8ecf2;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.community-detail-section--overview .community-detail-section__header {
    display: block;
}

.community-detail-section--overview .community-detail-section__header p {
    color: #ff6b1a;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.community-detail-section--overview .community-detail-section__header h2 {
    max-width: 860px;
    color: #071225;
    line-height: 1.04;
    font-weight: 950;
}

.community-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-overview-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.community-overview-card:hover {
    border-color: #d7dde7;
    box-shadow: 0 22px 48px rgba(16, 24, 40, 0.12);
}

.community-overview-card--orange {
    background: linear-gradient(145deg, #ffffff 0%, #fffaf7 100%);
}

.community-overview-card--blue {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
}

.community-overview-card--green {
    background: linear-gradient(145deg, #ffffff 0%, #f8fffb 100%);
}

.community-overview-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.community-overview-card__icon--orange {
    background: #fff1e8;
    color: #ff6b1a;
    box-shadow: 0 16px 28px rgba(255, 107, 26, 0.18);
}

.community-overview-card__icon--blue {
    background: #eef4ff;
    color: #2563eb;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.15);
}

.community-overview-card__icon--green {
    background: #ecfdf3;
    color: #22b66e;
    box-shadow: 0 16px 28px rgba(34, 182, 110, 0.16);
}

.community-overview-card h3 {
    margin: 0;
    color: #071225;
    line-height: 1.14;
    font-weight: 950;
    letter-spacing: 0;
}

.community-overview-card p {
    margin: 22px 0 0;
    color: #667085;
    font-weight: 650;
}

.community-overview-card__footer {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.community-overview-action {
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    padding: 0;
    color: #ff6b1a;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
}

.community-overview-action svg {
    transition: transform 180ms ease;
}

/* touch tablets: the text-like actions get a finger-sized hit area */
@media (max-width: 1024px) {
    .community-overview-action {
        min-height: 36px;
    }

    .community-xp-rules summary {
        padding: 10px 0;
    }
}

.community-overview-action:hover {
    color: #f25f0d;
}

.community-overview-action:hover svg {
    transform: translateX(5px);
}

.community-overview-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.community-overview-request-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff1e8;
    color: #ff6b1a;
    padding: 0 13px;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
}

.community-overview-next-ride {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    border-radius: 18px;
    background: #ffffff;
    padding: 12px 14px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.community-overview-next-ride strong {
    flex: 0 0 auto;
    border-radius: 12px;
    background: #fff1e8;
    color: #ff6b1a;
    padding: 9px 10px;
    font-size: 16px;
    line-height: 1;
    font-weight: 950;
}

.community-overview-next-ride span {
    min-width: 0;
    overflow: hidden;
    color: #101828;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 850;
}

.community-overview-status,
.community-overview-member-metric {
    display: inline-flex;
    align-items: center;
    color: #667085;
    font-weight: 750;
}

.community-overview-member-metric {
    width: 100%;
}

.community-overview-status b,
.community-overview-member-metric strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff1e8;
    color: #ff6b1a;
    line-height: 1;
    font-weight: 950;
}

.community-overview-status--blue b {
    background: #eef4ff;
    color: #2563eb;
}

.community-overview-member-metric strong {
    background: #dcfce7;
    color: #16a34a;
}

.community-overview-member-metric svg {
    margin-left: auto;
    color: #22b66e;
}

.community-route-list {
    display: grid;
}

.community-route-list a {
    display: grid;
    gap: 5px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

.community-route-list span {
    overflow: hidden;
    color: #0f172a;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 950;
}

.community-route-list small {
    color: #64748b;
    font-weight: 800;
}

.community-side-members img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-detail-aside {
    flex: 0 0 360px;
    display: grid;
    align-self: flex-start;
    position: sticky;
    top: 96px;
}

.community-side-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.community-side-heading {
    display: flex;
    align-items: center;
}

.community-side-heading p,
.community-side-card__eyebrow {
    margin: 0;
    color: #ff6b1a;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
}

.community-side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.community-side-title h3 {
    margin: 0;
    color: #101828;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.community-side-title a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #98a2b3;
}

.community-side-title a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff7ed;
    color: #ff6b1a;
    padding: 0 12px;
    line-height: 1;
    font-weight: 950;
}

.community-side-title a svg {
    width: 24px;
    height: 24px;
}

.community-side-members {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-side-member {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #101828;
    line-height: 1;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.community-side-member:hover {
    border-color: #fed7aa;
    color: #ff6b1a;
}

.community-side-member img {
    flex: 0 0 auto;
    border-radius: 999px;
    object-fit: cover;
}

.community-side-member span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-side-card--dark {
    position: relative;
    overflow: hidden;
    border-color: #071225;
    background:
        radial-gradient(circle at 82% 22%, rgba(71, 85, 105, 0.34), transparent 23%),
        linear-gradient(145deg, #071225 0%, #0b1830 100%);
    color: #ffffff;
}

.community-side-card--dark::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 42px;
    width: 168px;
    height: 96px;
    opacity: 0.24;
    background:
        linear-gradient(135deg, transparent 47%, rgba(255, 255, 255, 0.5) 48%, transparent 49%) 0 0 / 84px 84px,
        linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.28) 46%, transparent 48%) 24px 20px / 96px 72px;
    pointer-events: none;
}

.community-side-card--dark .community-side-card__eyebrow {
    position: relative;
    z-index: 1;
    color: #ff7a1a;
    margin-bottom: 24px;
}

.community-side-rules {
    position: relative;
    z-index: 1;
    display: grid;
}

.community-side-rule {
    display: grid;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.community-side-rule:first-child {
    border-top: 0;
    padding-top: 0;
}

.community-side-rule:last-child {
    padding-bottom: 0;
}

.community-side-rule span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ff7a1a;
}

.community-side-rule strong {
    color: #ffffff;
    line-height: 1.3;
    font-weight: 850;
}

.community-hero-mobile-actions {
    display: none;
}

.community-mobile-members {
    display: none;
}

.community-side-rules--modal .community-side-rule {
    border-top-color: #eef2f7;
}

.community-side-rules--modal .community-side-rule span {
    background: #fff7ed;
    color: #f97316;
}

.community-side-rules--modal .community-side-rule strong {
    color: #0f172a;
}

.community-ride-modal[hidden] {
    display: none;
}

.community-ride-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 18px;
}

.community-ride-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 37, 0.58);
    backdrop-filter: blur(10px);
}

.community-ride-modal__panel {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(7, 18, 37, 0.24);
}

.community-ride-modal__panel--participants {
    width: min(560px, 100%);
}

.community-ride-modal__panel--settings {
    width: min(1040px, 100%);
    height: min(860px, calc(100vh - 36px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.community-settings-modal-content {
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    border-radius: 22px;
    background: #ffffff;
    overflow-y: auto;
}

.community-settings-modal-content .community-settings-page {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.community-settings-modal-content .community-settings-page > .flex:first-child {
    display: none !important;
}

.community-settings-loader,
.community-settings-load-error {
    min-height: 360px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border-radius: 22px;
    background: #f3f4f6;
    color: #667085;
    text-align: center;
}

.community-settings-loader span {
    width: 38px;
    height: 38px;
    border: 4px solid #e5e7eb;
    border-top-color: #ff6b1a;
    border-radius: 999px;
    animation: communitySettingsSpin .8s linear infinite;
}

.community-settings-loader p,
.community-settings-load-error p {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
}

.community-settings-load-error h4 {
    margin: 0;
    color: #071225;
    font-size: 18px;
    font-weight: 950;
}

.community-settings-load-error a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #ff6b1a;
    color: #fff;
    padding: 0 16px;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

@keyframes communitySettingsSpin {
    to {
        transform: rotate(360deg);
    }
}

.community-ride-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.community-ride-modal__header p {
    margin: 0 0 8px;
    color: #ff6b1a;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.community-ride-modal__header h3 {
    margin: 0;
    color: #071225;
    line-height: 1.08;
    font-weight: 950;
}

.community-ride-modal__header button {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: #f2f4f7;
    color: #667085;
}

.community-ride-modal__header button svg {
    width: 22px;
    height: 22px;
}

.community-ride-field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.community-ride-field span {
    color: #667085;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.community-ride-field input,
.community-ride-field select,
.community-ride-field textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
    color: #101828;
    padding: 13px 14px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    outline: none;
}

.community-ride-field textarea {
    resize: vertical;
}

.community-ride-field input:focus,
.community-ride-field select:focus,
.community-ride-field textarea:focus {
    border-color: #ff6b1a;
    background: #ffffff;
}

.community-ride-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.community-ride-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #f2f4f7;
    padding-top: 18px;
}

.community-ride-modal__actions button {
    min-height: 44px;
    border: 0;
    border-radius: 15px;
    padding: 0 18px;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.community-ride-modal__actions button:first-child {
    background: #f2f4f7;
    color: #667085;
}

.community-ride-modal__actions button:last-child {
    background: #ff6b1a;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(255, 107, 26, 0.2);
}

.community-ride-participant-list {
    display: grid;
    gap: 10px;
}

.community-ride-participant-row {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #f8fafc;
    padding: 10px;
}

.community-ride-participant-user {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #101828;
}

.community-ride-participant-user img {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 999px;
    object-fit: cover;
}

.community-ride-participant-user span {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.community-ride-participant-user strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #071225;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 950;
}

.community-ride-participant-user small {
    overflow: hidden;
    color: #98a2b3;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.community-ride-participant-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.community-ride-star-badge {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #fff7ed;
    color: #f97316;
    font-size: 18px;
    line-height: 1;
    box-shadow: inset 0 0 0 1px #fed7aa;
}

.community-ride-award-btn {
    min-height: 36px;
    border: 0;
    border-radius: 13px;
    background: #ffffff;
    color: #667085;
    padding: 0 12px;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.community-ride-award-btn.is-active {
    background: #fff7ed;
    color: #f97316;
    box-shadow: inset 0 0 0 1px #fed7aa;
}

.community-ride-participants-empty {
    border: 1px dashed #e5e7eb;
    border-radius: 20px;
    background: #f8fafc;
    padding: 26px 18px;
    text-align: center;
}

.community-ride-participants-empty h4 {
    margin: 0;
    color: #071225;
    font-size: 18px;
    font-weight: 950;
}

.community-ride-participants-empty p {
    max-width: 360px;
    margin: 7px auto 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

@media (max-width: 1023px) {
    .community-hero-body {
        padding-right: 32px;
        padding-left: 32px;
    }

    .community-hero-identity {
        grid-template-columns: 170px minmax(0, 1fr);
        column-gap: 28px;
        row-gap: 16px;
    }

    .community-detail-aside {
        position: static;
    }

    .community-side-members {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .community-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-overview-card {
        min-height: 360px;
    }

    .community-club-routes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .community-detail-page {
        margin: 0 0 72px;
        padding: 0;
    }

    .community-hero-card {
        border-right: 0;
        border-left: 0;
    }

    .community-detail-tabs {
        border-right: 0;
        border-left: 0;
    }

    .community-detail-section,
    .community-rides-section,
    .community-club-routes-section {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .community-detail-section__header,
    .community-rides-header,
    .community-club-routes-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .community-rides-header h2,
    .community-club-routes-header h2 {
        font-size: 24px;
    }

    .community-club-route-card {
        border-radius: 24px;
    }

    .community-route-status {
        right: 12px;
        bottom: 12px;
        min-height: 30px;
        padding: 0 10px;
        font-size: 10px;
    }

    .community-club-route-card__body h3 {
        font-size: 21px;
    }

    .community-club-route-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .community-route-status-control {
        width: 100%;
        justify-content: space-between;
    }

    .community-route-status-control select {
        max-width: none;
        flex: 1 1 auto;
    }

    .community-club-route-card__footer a {
        width: 100%;
    }

    .community-delete-inline {
        width: 100%;
    }

    .community-club-routes-empty {
        border-radius: 24px;
        padding: 34px 18px;
    }

    .community-club-routes-empty h3 {
        font-size: 21px;
    }

    .community-ride-join-btn,
    .community-ride-award-open,
    .community-ride-participants-trigger {
        width: 100%;
    }

    .community-ride-participant-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .community-ride-participant-actions {
        width: 100%;
        justify-content: space-between;
    }

    .community-ride-award-btn {
        flex: 1 1 auto;
    }

    .community-ride-modal {
        align-items: end;
        padding: 0;
    }

    .community-ride-modal__panel {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 28px 28px 0 0;
        padding: 22px;
    }

    .community-ride-modal__header h3 {
        font-size: 23px;
    }

    .community-ride-modal__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .community-ride-modal__actions {
        flex-direction: column-reverse;
    }

    .community-side-card {
        border-radius: 28px;
        padding: 22px;
    }

    .community-side-heading p,
    .community-side-card__eyebrow {
        font-size: 15px;
        letter-spacing: 0.18em;
    }

    .community-side-title h3 {
        font-size: 17px;
    }

    .community-side-title a span {
        min-width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .community-side-member {
        min-height: 50px;
        gap: 9px;
        padding: 5px 10px 5px 5px;
        font-size: 13px;
    }

    .community-side-member img {
        width: 40px;
        height: 40px;
    }

    .community-side-rule {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 14px;
        padding: 17px 0;
    }

    .community-side-rule span {
        width: 46px;
        height: 46px;
    }

    .community-side-rule span svg {
        width: 24px;
        height: 24px;
    }

    .community-side-rule strong {
        font-size: 15px;
    }

    .community-detail-section--overview {
        border-radius: 0;
    }

    .community-detail-section--overview .community-detail-section__header {
        margin-bottom: 26px;
    }

    .community-detail-section--overview .community-detail-section__header p {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .community-overview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .community-overview-card {
        border-radius: 24px;
    }

    .community-overview-card p {
        margin-top: 14px;
        font-size: 16px;
    }

    .community-overview-action {
        font-size: 16px;
    }

    .community-overview-status,
    .community-overview-member-metric {
        gap: 12px;
        font-size: 15px;
    }

    .community-overview-status b,
    .community-overview-member-metric strong {
        min-width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 22px;
    }
}

/* Page scale tuning: community detail should match the denser site rhythm. */
.community-detail-page {
    max-width: 1280px;
    margin-top: 24px;
    margin-bottom: 72px;
}

.community-hero-card {
    border-radius: 28px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
}

.community-hero-cover {
    height: 238px;
    border-radius: 28px 28px 0 0;
}

.community-hero-back {
    top: 22px;
    left: 22px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.community-hero-back svg {
    width: 22px;
    height: 22px;
}

.community-hero-actions {
    top: 22px;
    right: 24px;
    gap: 8px;
}

.community-detail-action {
    min-height: 42px;
    gap: 8px;
    border-radius: 13px;
    padding: 0 18px;
    font-size: 12px;
}

.community-detail-action svg {
    width: 16px;
    height: 16px;
}

.community-hero-body {
    padding: 0 38px 30px;
}

.community-hero-identity {
    grid-template-columns: 136px minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 12px;
}

.community-hero-avatar-stack {
    width: 124px;
    margin-top: -62px;
}

.community-hero-avatar {
    width: 124px;
    height: 124px;
    border-width: 5px;
}

.community-hero-copy {
    padding-top: 22px;
}

.community-hero-copy p {
    margin-top: 9px;
    font-size: 15px;
    line-height: 1.42;
}

.community-hero-pills {
    gap: 8px;
    margin-top: 0;
}

.community-hero-pill {
    height: 32px;
    gap: 7px;
    padding: 0 12px;
    font-size: 11px;
}

.community-hero-pill svg {
    width: 16px;
    height: 16px;
}

.community-detail-tabs {
    min-height: 68px;
    gap: 10px;
    margin: 18px 0 22px;
    border-radius: 22px;
    padding: 10px;
}

.community-detail-tabs a {
    height: 46px;
    gap: 9px;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 13px;
}

.community-detail-tabs a svg {
    width: 18px;
    height: 18px;
}

.community-detail-layout {
    gap: 20px !important;
}

.community-detail-section,
.community-rides-section,
.community-club-routes-section {
    border-radius: 24px;
    padding: 20px;
}

.community-rides-header,
.community-club-routes-header {
    margin-bottom: 16px;
}

.community-rides-header h2,
.community-club-routes-header h2 {
    font-size: 22px;
}

.community-rides-header button,
.community-rides-empty button,
.community-club-routes-header button,
.community-club-routes-empty button {
    min-height: 38px;
    border-radius: 13px;
    padding: 0 14px;
    font-size: 10px;
}

.community-ride-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    border-radius: 22px;
    padding: 16px;
}

.community-ride-card__date {
    min-height: 70px;
    border-radius: 18px;
}

.community-ride-card__date strong {
    font-size: 26px;
}

.community-ride-card__date span {
    font-size: 10px;
}

.community-ride-card__top h3 {
    font-size: 18px;
}

.community-ride-card__description {
    margin-top: 10px;
    font-size: 13px;
}

.community-ride-participation {
    gap: 9px;
    margin-top: 12px;
}

.community-ride-join-btn,
.community-ride-award-open {
    min-height: 36px;
    border-radius: 13px;
    padding: 0 13px;
    font-size: 10px;
}

.community-delete-inline {
    min-height: 34px;
    border-radius: 12px;
    padding: 0 11px;
    font-size: 9px;
}

.community-ride-participants-trigger {
    border-radius: 15px;
    padding: 6px 10px 6px 7px;
}

.community-ride-participants-avatars img,
.community-ride-participants-empty-icon {
    width: 30px;
    height: 30px;
}

.community-club-routes-grid {
    gap: 14px;
}

.community-club-route-card {
    border-radius: 22px;
}

.community-club-route-card__media {
    height: 160px;
}

.community-club-route-card__body {
    gap: 12px;
    padding: 16px;
}

.community-club-route-card__body h3 {
    min-height: 42px;
    font-size: 19px;
}

.community-club-route-card__body p {
    min-height: 54px;
    font-size: 13px;
}

.community-detail-section--overview {
    border-radius: 26px;
    padding: 30px;
}

.community-detail-section--overview .community-detail-section__header {
    margin-bottom: 24px;
}

.community-detail-section--overview .community-detail-section__header p {
    margin-bottom: 9px;
    font-size: 11px;
}

.community-detail-section--overview .community-detail-section__header h2 {
    font-size: clamp(28px, 3vw, 36px);
}

.community-overview-grid {
    gap: 18px;
}

.community-overview-card {
    min-height: 260px;
    border-radius: 22px;
    padding: 22px;
}

.community-overview-card:hover {
    transform: translateY(-2px);
}

.community-overview-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.community-overview-card__icon svg {
    width: 28px;
    height: 28px;
}

.community-overview-card h3 {
    font-size: 22px;
}

.community-overview-card p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.community-overview-card__footer {
    min-height: 44px;
    padding-top: 20px;
}

.community-overview-action {
    gap: 9px;
    font-size: 14px;
}

.community-overview-action svg {
    width: 18px;
    height: 18px;
}

.community-route-list {
    gap: 8px;
    margin-top: 12px;
}

.community-route-list a {
    border-radius: 13px;
    padding: 10px 12px;
}

.community-route-list span {
    font-size: 13px;
}

.community-route-list small {
    font-size: 11px;
}

.community-overview-status,
.community-overview-member-metric {
    gap: 10px;
    font-size: 13px;
}

.community-overview-status b,
.community-overview-member-metric strong {
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 20px;
}

.community-overview-member-metric svg {
    width: 22px;
    height: 22px;
}

.community-detail-aside {
    width: 300px;
    flex-basis: 300px;
    gap: 16px;
}

.community-side-card {
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.community-side-heading {
    gap: 10px;
    margin-bottom: 16px;
}

.community-side-heading p,
.community-side-card__eyebrow {
    font-size: 13px;
    letter-spacing: 0.18em;
}

.community-side-title {
    margin-bottom: 16px;
}

.community-side-title h3 {
    font-size: 16px;
}

.community-side-title a span {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
}

.community-side-members {
    gap: 10px;
}

.community-side-member {
    min-height: 44px;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    font-size: 12px;
}

.community-side-member img {
    width: 34px;
    height: 34px;
}

.community-side-rule {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
}

.community-side-rule span {
    width: 40px;
    height: 40px;
}

.community-side-rule span svg {
    width: 22px;
    height: 22px;
}

.community-side-rule strong {
    font-size: 13px;
}

.community-ride-modal__panel {
    border-radius: 24px;
    padding: 22px;
}

.community-ride-modal__header h3 {
    font-size: 22px;
}

@media (max-width: 1023px) {
    .community-detail-aside {
        width: 100%;
        flex-basis: auto;
    }
}

@media (max-width: 767px) {

    .community-detail-section,
    .community-rides-section,
    .community-club-routes-section {
        padding: 16px 14px;
    }

    .community-detail-section--overview {
        padding: 24px 16px;
    }

    .community-detail-section--overview .community-detail-section__header h2 {
        font-size: 27px;
    }

    .community-overview-card {
        min-height: 220px;
        padding: 20px;
    }

    .community-overview-card h3 {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .community-settings-modal {
        padding: 0;
    }

    .community-ride-modal__panel--settings {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border: 0;
        border-radius: 0;
        padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 14px;
    }

    .community-settings-modal-content {
        border-radius: 18px;
    }

    .community-detail-page {
        margin-top: 0;
        padding-top: 0;
    }

    .community-hero-cover {
        height: 168px;
        border-radius: 0;
    }

    .community-hero-cover img,
    .community-hero-cover__fallback {
        border-radius: 0;
    }

    .community-hero-back {
        top: 16px;
        left: 16px;
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .community-hero-back svg {
        width: 20px;
        height: 20px;
    }

    .community-hero-actions {
        top: 16px;
        right: 16px;
        left: 64px;
        gap: 8px;
    }

    .community-detail-action {
        min-height: 38px;
        border-radius: 12px;
        padding: 0 12px;
        font-size: 10px;
    }

    .community-detail-action svg {
        width: 14px;
        height: 14px;
    }

    .community-hero-identity {
        grid-template-columns: 84px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 10px;
        margin-top: -28px;
    }

    .community-hero-avatar-stack {
        grid-row: 1;
    }

    .community-hero-avatar {
        margin-top: 0;
        border-width: 4px;
    }

    .community-hero-copy {
        padding-bottom: 0;
    }

    .community-hero-copy p {
        display: block;
    }

    .community-hero-pills {
        grid-column: 1 / -1;
    }

    .community-hero-pill {
        gap: 6px;
    }

    .community-hero-pill svg {
        width: 14px;
        height: 14px;
    }

    .community-detail-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .community-detail-tabs::-webkit-scrollbar {
        display: none;
    }

    .community-detail-tabs a {
        flex: 0 0 auto;
    }

    .community-quick-note-card {
        margin-bottom: 10px;
    }

    .community-quick-note-card__row {
        gap: 10px;
    }

    .community-quick-note-card__avatar {
        width: 34px;
        height: 34px;
    }

    .community-quick-note-card__input textarea {
        min-height: 34px;
        padding-top: 5px;
        font-size: 12px;
        line-height: 1.35;
    }

    .community-quick-note-card__input p {
        font-size: 9px;
    }

    .community-quick-note-card__actions {
        margin-top: 10px;
        padding-top: 9px;
    }

    .community-quick-note-card__attach,
    .community-quick-note-card__actions button {
        min-height: 34px;
        border-radius: 12px;
        padding: 0 12px;
        font-size: 9px;
    }

    .community-rides-section {
        border-radius: 22px;
        padding: 16px 14px;
    }

    .community-rides-header {
        gap: 10px;
        margin-bottom: 14px;
    }

    .community-rides-header p {
        margin-bottom: 6px;
        font-size: 10px;
    }

    .community-rides-header h2 {
        font-size: 22px;
        line-height: 1.08;
    }

    .community-rides-header button,
    .community-rides-empty button {
        min-height: 36px;
        border-radius: 12px;
        padding: 0 13px;
        font-size: 10px;
    }

    .community-rides-grid {
        gap: 10px;
    }

    .community-ride-card {
        border-radius: 20px;
        padding: 12px;
    }

    .community-ride-card__date {
        width: fit-content;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 0 10px;
    }

    .community-ride-card__date strong {
        line-height: 1;
    }

    .community-ride-card__date span {
        margin-top: 1px;
    }

    .community-ride-card__top {
        flex-direction: column;
        gap: 8px;
    }

    .community-ride-card__top p {
        margin-bottom: 5px;
        font-size: 12px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .community-ride-card__top h3 {
        font-size: 18px;
        line-height: 1.15;
    }

    .community-ride-card__badges {
        justify-content: flex-start;
        gap: 6px;
    }

    .community-ride-card__badges > span {
        min-height: 26px;
        display: inline-flex;
        align-items: center;
        padding: 0 9px;
        font-size: 10px;
    }

    .community-ride-card__description {
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .community-ride-participation {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

    .community-ride-join-btn,
    .community-ride-award-open {
        width: 100%;
        min-height: 34px;
        border-radius: 12px;
        padding: 0 12px;
        font-size: 10px;
    }

    .community-ride-join-btn svg,
    .community-ride-award-open svg {
        width: 15px;
        height: 15px;
    }

    .community-ride-participants-trigger {
        width: 100%;
        justify-content: flex-start;
        gap: 9px;
        border-radius: 13px;
        padding: 6px 9px 6px 7px;
    }

    .community-ride-participants-avatars img,
    .community-ride-participants-empty-icon {
        width: 28px;
        height: 28px;
    }

    .community-ride-participants-text strong {
        white-space: normal;
        font-size: 12px;
    }

    .community-ride-participants-text small {
        font-size: 10px;
    }

    .community-ride-card__footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 10px;
    }

    .community-ride-card__footer > span {
        font-size: 10px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .community-ride-status-control {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .community-ride-status-control span {
        font-size: 9px;
    }

    .community-ride-status-control select {
        min-height: 34px;
        min-width: 0;
        flex: 1 1 auto;
        border-radius: 12px;
        padding: 0 10px;
        font-size: 11px;
    }

    .community-ride-card__footer a,
    .community-ride-card__footer .community-delete-inline {
        width: 100%;
        min-height: 34px;
        border-radius: 12px;
        font-size: 9px;
    }
}

.community-hero-avatar {
    position: relative;
    overflow: visible;
    border: 0;
    border-radius: 999px;
    padding: 6px;
    background: conic-gradient(#f97316 var(--community-level-progress, 0%), #eef2f7 0);
}

.community-hero-avatar__inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 5px solid #ffffff;
    border-radius: inherit;
    background: #ffffff;
}

.community-hero-avatar img {
    border-radius: inherit;
}

.community-hero-avatar__level {
    position: absolute;
    right: 10px;
    bottom: 10px;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #ffffff;
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.community-hero-level {
    width: 100%;
    min-width: 0;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    margin-top: 18px;
    padding: 11px 12px;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.10);
}

.community-hero-level__rank {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #0f172a;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
}

.community-hero-level__level {
    display: block;
    margin-top: 5px;
    color: #f97316;
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.community-hero-level__xp {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 850;
}

.community-hero-level__track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #ffedd5;
    margin-top: 8px;
}

.community-hero-level__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fb923c 0%, #f97316 100%);
}

.community-side-title__level {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff7ed;
    color: #f97316;
    padding: 0 13px;
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.community-awards-list {
    display: grid;
    gap: 12px;
}

.community-award-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    background: #f8fafc;
    padding: 12px;
}

.community-award-item__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff7ed;
    color: #f97316;
}

.community-award-item__icon svg {
    width: 22px;
    height: 22px;
}

.community-award-item strong,
.community-award-item span {
    display: block;
    min-width: 0;
}

.community-award-item strong {
    overflow: hidden;
    color: #0f172a;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 950;
}

.community-award-item div span {
    margin-top: 3px;
    color: #64748b;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 750;
}

.community-award-item b {
    color: #f97316;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    white-space: nowrap;
}

.community-next-award {
    margin-top: 14px;
    border-radius: 20px;
    background: #0f172a;
    color: #ffffff;
    padding: 16px;
}

.community-next-award p {
    margin: 0 0 8px;
    color: #fb923c;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.community-next-award strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 950;
}

.community-next-award > span {
    display: block;
    margin-top: 6px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1;
    font-weight: 850;
}

.community-next-award div {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    margin-top: 12px;
}

.community-next-award i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #f97316;
}

.community-awards-note {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 750;
}

.community-xp-rules {
    margin-top: 14px;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    background: #ffffff;
    padding: 12px;
}

.community-xp-rules summary {
    color: #0f172a;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.community-xp-rules div {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.community-xp-rules span {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 750;
}

.community-xp-rules b {
    color: #f97316;
    font-weight: 950;
}

@media (max-width: 767px) {
    .community-hero-avatar {
        padding: 4px;
    }

    .community-hero-avatar__inner {
        border-width: 3px;
    }

    .community-side-card--awards {
        padding: 18px;
    }

    .community-award-item {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .community-award-item b {
        grid-column: 2;
    }

    .community-award-item__icon {
        width: 34px;
        height: 34px;
    }

    .community-award-item__icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 767px) {
    .community-detail-page,
    .community-hero-card,
    .community-detail-aside {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .community-hero-actions {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .community-hero-actions::-webkit-scrollbar {
        display: none;
    }

    .community-detail-action,
    .community-hero-back,
    .community-detail-tabs a,
    .community-ride-join-btn,
    .community-ride-award-open,
    .community-ride-participants-trigger,
    .community-route-status-control select,
    .community-delete-inline,
    .community-club-route-card__footer a {
        min-height: 44px;
    }

    .community-hero-pills,
    .community-detail-tabs,
    .community-ride-card__badges {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .community-hero-pills::-webkit-scrollbar,
    .community-detail-tabs::-webkit-scrollbar,
    .community-ride-card__badges::-webkit-scrollbar {
        display: none;
    }

    .community-hero-pill,
    .community-detail-tabs a,
    .community-ride-card__badges span {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .community-detail-section__header a,
    .community-rides-header a,
    .community-club-routes-header a {
        min-height: 44px;
        width: 100%;
        justify-content: center;
    }

    .community-side-members {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .community-overview-card,
    .community-side-card,
    .community-ride-card,
    .community-club-route-card {
        max-width: 100%;
    }

    .community-mobile-members {
        display: block;
    }

    .community-mobile-members .community-side-members {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px;
        margin-top: 14px;
    }

    .community-mobile-members .community-side-member {
        min-width: 0;
    }

    .community-mobile-members .community-side-title h3 {
        font-size: 14px;
        letter-spacing: 0.16em;
    }

    .community-detail-aside .community-side-card--members {
        display: none;
    }

    .community-hero-mobile-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .community-hero-mobile-actions button {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: 1px solid #fed7aa;
        padding: 0 10px;
        line-height: 1;
        white-space: nowrap;
    }

    .community-hero-mobile-actions button svg {
        width: 13px;
        height: 13px;
        flex: 0 0 auto;
    }

    .community-hero-mobile-actions button:only-child {
        grid-column: 1 / -1;
    }

    .community-side-card--awards,
    .community-side-card--rules {
        display: none;
    }

    .community-info-modal .community-ride-modal__panel {
        max-height: 88dvh;
        padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    }

    .community-info-modal .community-award-item {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        border-radius: 16px;
        padding: 10px;
    }

    .community-info-modal .community-award-item b {
        grid-column: 2;
        justify-self: start;
    }

    .community-side-rules--modal .community-side-rule {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
        padding: 14px 0;
    }

    .community-side-rules--modal .community-side-rule span {
        width: 44px;
        height: 44px;
    }

    .community-side-rules--modal .community-side-rule span svg {
        width: 23px;
        height: 23px;
    }

    .community-side-rules--modal .community-side-rule strong {
        font-size: 15px;
    }

    .community-hero-level {
        margin-top: 10px;
    }

    .community-hero-level__level {
        margin-top: 4px;
        letter-spacing: 0;
    }

    .community-hero-level__xp {
        margin-top: 5px;
    }

    .community-hero-level__track {
        margin-top: 5px;
    }
}

/* Community profile polish: lighter typography and calmer spacing, without new UI. */
.community-detail-page {
    font-family: var(--font-text);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    color: #111827;
}

.community-detail-page,
.community-detail-page :where(h1, h2, h3, p, a, button, span, strong, small, b) {
    letter-spacing: 0 !important;
}

.community-hero-card,
.community-detail-section,
.community-feed-heading,
.community-rides-section,
.community-club-routes-section,
.community-overview-card,
.community-side-card,
.community-ride-card,
.community-club-route-card {
    border-color: rgba(226, 232, 240, .82) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .045) !important;
}

.community-hero-copy h1 {
    font-size: clamp(30px, 3.4vw, 44px) !important;
    line-height: 1.1 !important;
    font-weight: 740 !important;
}

.community-hero-copy p {
    color: #64748b !important;
    font-weight: 450 !important;
}

.community-detail-action,
.community-hero-pill,
.community-detail-tabs a,
.community-overview-action,
.community-rides-header button,
.community-club-routes-header button,
.community-ride-join-btn,
.community-ride-award-open,
.community-delete-inline,
.community-club-route-card__footer a,
.community-quick-note-card__actions button,
.community-quick-note-card__attach,
.community-feed-list a[href*="page="] {
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

.community-detail-tabs a {
    color: #64748b !important;
    font-weight: 500 !important;
}

.community-detail-tabs a.is-active {
    color: #ea580c !important;
    background: #fff7ed !important;
    box-shadow: none !important;
    font-weight: 650 !important;
}

.community-detail-section__header p,
.community-side-heading p,
.community-side-card__eyebrow,
.community-feed-heading p,
.community-rides-header p,
.community-club-routes-header p {
    color: #f97316 !important;
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

.community-detail-section__header h2,
.community-feed-heading h2,
.community-rides-header h2,
.community-club-routes-header h2,
.community-side-title h3,
.community-side-heading h3 {
    color: #111827 !important;
    font-weight: 680 !important;
}

.community-overview-card h3,
.community-ride-card__top h3,
.community-club-route-card__body h3,
.community-rides-empty h3,
.community-club-routes-empty h3,
.community-feed-list h3 {
    color: #111827 !important;
    font-weight: 650 !important;
}

.community-overview-card p,
.community-ride-card__description,
.community-club-route-card__body p,
.community-rides-empty p,
.community-club-routes-empty p,
.community-feed-list p,
.community-side-member span,
.community-award-item span,
.community-awards-note,
.community-next-award > span {
    color: #64748b !important;
    font-weight: 450 !important;
}

.community-hero-level__rank,
.community-hero-level__level,
.community-hero-level__xp,
.community-side-title__level,
.community-overview-status b,
.community-overview-member-metric strong,
.community-members-count,
.community-ride-card__date strong,
.community-club-route-card__meta span,
.community-route-list span,
.community-route-list small {
    font-weight: 600 !important;
}

@media (max-width: 767px) {
    .community-detail-page {
        --community-mobile-border: rgba(226, 232, 240, .78);
        --community-mobile-shadow: 0 5px 16px rgba(15, 23, 42, .035);
        margin-bottom: 84px !important;
        background: #f8fafc;
    }

    .community-hero-card {
        border-bottom-color: var(--community-mobile-border) !important;
        border-radius: 0 0 24px 24px !important;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .045) !important;
    }

    .community-hero-copy {
        padding-top: 26px !important;
    }

    .community-hero-copy p {
        margin-top: 9px !important;
    }

    .community-hero-level {
        border-color: var(--community-mobile-border) !important;
    }

    .community-hero-level__rank,
    .community-hero-level__level,
    .community-hero-level__xp {
        text-transform: none !important;
        font-weight: 500 !important;
    }

    .community-hero-pills {
        gap: 8px !important;
    }

    .community-hero-pill {
        height: 32px !important;
        padding: 0 11px !important;
        border: 1px solid var(--community-mobile-border) !important;
        background: #ffffff !important;
        color: #64748b !important;
        font-size: 11px !important;
        font-weight: 500 !important;
    }

    .community-hero-pill--orange {
        border-color: #fed7aa !important;
        background: #fff7ed !important;
        color: #ea580c !important;
    }

    .community-hero-mobile-actions {
        gap: 10px !important;
        margin-top: 14px !important;
    }

    .community-hero-mobile-actions button {
        height: 38px !important;
        min-height: 38px !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        color: #334155 !important;
        border-color: var(--community-mobile-border) !important;
        box-shadow: var(--community-mobile-shadow) !important;
        font-size: 11px !important;
        font-weight: 550 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }

    .community-detail-tabs {
        min-height: auto !important;
        gap: 6px !important;
        margin: 18px 12px 20px !important;
        padding: 6px !important;
        border: 1px solid var(--community-mobile-border) !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        box-shadow: var(--community-mobile-shadow) !important;
    }

    .community-detail-tabs a {
        height: 36px !important;
        min-height: 36px !important;
        gap: 7px !important;
        border-radius: 12px !important;
        padding: 0 12px !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .community-detail-tabs a svg {
        width: 16px !important;
        height: 16px !important;
    }

    .community-detail-tabs a.is-active {
        border: 1px solid #fed7aa !important;
        background: #fff7ed !important;
        color: #ea580c !important;
        font-weight: 650 !important;
    }

    .community-detail-layout {
        gap: 18px !important;
        padding: 0 12px !important;
    }

    .community-detail-layout main {
        gap: 18px !important;
    }

    .community-detail-layout > main > :not([hidden]) ~ :not([hidden]) {
        margin-top: 18px !important;
    }

    .community-detail-section,
    .community-feed-heading,
    .community-rides-section,
    .community-club-routes-section,
    .community-side-card {
        padding: 16px 14px !important;
        border: 1px solid var(--community-mobile-border) !important;
        border-radius: 20px !important;
        background: #ffffff !important;
        box-shadow: var(--community-mobile-shadow) !important;
    }

    .community-detail-section__header,
    .community-rides-header,
    .community-club-routes-header,
    .community-feed-heading > div {
        gap: 12px !important;
        margin-bottom: 16px !important;
    }

    .community-detail-section__header p,
    .community-feed-heading p,
    .community-rides-header p,
    .community-club-routes-header p {
        margin-bottom: 7px !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 600 !important;
    }

    .community-detail-section__header h2,
    .community-feed-heading h2,
    .community-rides-header h2,
    .community-club-routes-header h2 {
        font-size: 18px !important;
        line-height: 1.2 !important;
        font-weight: 680 !important;
    }

    .community-overview-grid,
    .community-rides-grid,
    .community-club-routes-grid {
        gap: 14px !important;
    }

    .community-overview-card,
    .community-ride-card,
    .community-club-route-card {
        min-height: 0 !important;
        padding: 16px !important;
        border-color: var(--community-mobile-border) !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        box-shadow: var(--community-mobile-shadow) !important;
    }

    .community-overview-card:hover {
        transform: none !important;
    }

    .community-overview-card__icon {
        width: 42px !important;
        height: 42px !important;
        margin-bottom: 14px !important;
        border-radius: 14px !important;
    }

    .community-overview-card__icon svg {
        width: 21px !important;
        height: 21px !important;
    }

    .community-overview-card h3,
    .community-ride-card__top h3,
    .community-club-route-card__body h3 {
        font-size: 17px !important;
        line-height: 1.22 !important;
        font-weight: 650 !important;
    }

    .community-overview-card p,
    .community-ride-card__description,
    .community-club-route-card__body p {
        margin-top: 8px !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        font-weight: 450 !important;
    }

    .community-overview-card__footer {
        min-height: 0 !important;
        padding-top: 16px !important;
    }

    .community-overview-action,
    .community-rides-header button,
    .community-club-routes-header button,
    .community-rides-empty button,
    .community-club-routes-empty button,
    .community-ride-join-btn,
    .community-ride-award-open,
    .community-club-route-card__footer a,
    .community-quick-note-card__actions button,
    .community-feed-list a[href*="page="] {
        min-height: 38px !important;
        border-radius: 13px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        box-shadow: none !important;
    }

    .community-club-route-card__media {
        height: 158px !important;
        border-radius: 16px !important;
    }

    .community-club-route-card__body {
        gap: 12px !important;
        padding: 14px 0 0 !important;
    }

    .community-club-route-card__body h3,
    .community-club-route-card__body p {
        min-height: 0 !important;
    }

    .community-route-status,
    .community-ride-status,
    .community-ride-card__badges span,
    .community-club-route-card__meta span,
    .community-route-list small,
    .community-side-title__level {
        text-transform: none !important;
        font-weight: 500 !important;
        letter-spacing: 0 !important;
    }

    .community-ride-card {
        grid-template-columns: 58px minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .community-ride-card__date {
        min-height: 62px !important;
        border-radius: 15px !important;
    }

    .community-ride-card__date strong {
        font-size: 22px !important;
        font-weight: 650 !important;
    }

    .community-ride-card__date span {
        font-size: 10px !important;
        font-weight: 500 !important;
    }

    .community-mobile-members {
        margin: 16px 12px 0 !important;
        padding: 16px 14px !important;
        border-radius: 20px !important;
    }

    .community-side-title h3,
    .community-mobile-members .community-side-title h3 {
        font-size: 15px !important;
        font-weight: 650 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }

    .community-side-members {
        gap: 10px !important;
        margin-top: 14px !important;
    }

    .community-side-member {
        border-color: var(--community-mobile-border) !important;
        background: #fbfdff !important;
        box-shadow: none !important;
    }

    .community-side-member span {
        font-size: 11px !important;
        font-weight: 450 !important;
    }

    .community-quick-note-card {
        margin-top: 14px !important;
        padding: 14px !important;
        border: 1px solid var(--community-mobile-border) !important;
        border-radius: 20px !important;
        background: #ffffff !important;
        box-shadow: var(--community-mobile-shadow) !important;
    }

    .community-quick-note-card__input textarea {
        font-weight: 450 !important;
    }

    .community-quick-note-card__input p,
    .community-quick-note-card__attach {
        font-weight: 450 !important;
    }
}

/* Mobile club hero: mirror the user profile header composition. */
@media (max-width: 767px) {
    .community-hero-body {
        padding: 0 16px 24px !important;
    }

    .community-hero-identity {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
        text-align: center !important;
    }

    .community-hero-avatar-stack {
        display: contents !important;
        width: auto !important;
        margin-top: 0 !important;
    }

    .community-hero-avatar {
        order: 1;
        width: 124px !important;
        height: 124px !important;
        margin: -62px auto 0 !important;
        border: 5px solid #ffffff !important;
        border-radius: 28px !important;
        box-shadow: 0 20px 42px rgba(15, 23, 42, .16) !important;
    }

    .community-hero-avatar__inner {
        border-radius: 23px !important;
    }

    .community-hero-avatar__level {
        right: 5px !important;
        bottom: 5px !important;
        min-width: 28px !important;
        height: 28px !important;
        border-width: 3px !important;
        font-size: 10px !important;
        font-weight: 650 !important;
    }

    .community-hero-copy {
        order: 2;
        width: 100% !important;
        margin-top: 0 !important;
        padding: 14px 0 0 !important;
        text-align: center !important;
    }

    .community-hero-copy h1 {
        max-width: 100% !important;
        margin: 0 auto !important;
        color: #111827 !important;
        font-size: 23px !important;
        line-height: 1.14 !important;
        font-weight: 720 !important;
        text-align: center !important;
    }

    .community-hero-copy p {
        display: -webkit-box !important;
        max-width: 340px !important;
        margin: 9px auto 0 !important;
        overflow: hidden !important;
        color: #64748b !important;
        font-size: 12px !important;
        line-height: 1.42 !important;
        font-weight: 430 !important;
        text-align: center !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .community-hero-level {
        order: 3;
        display: grid !important;
        grid-template-columns: auto auto minmax(0, 1fr);
        align-items: center !important;
        width: 100% !important;
        max-width: none !important;
        margin: 16px 0 0 !important;
        padding: 12px 13px !important;
        border: 1px solid rgba(226, 232, 240, .78) !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, .97) !important;
        color: #111827 !important;
        text-align: left !important;
        box-shadow: 0 5px 16px rgba(15, 23, 42, .035) !important;
    }

    .community-hero-level__rank {
        min-width: 0 !important;
        color: #111827 !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        font-weight: 650 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .community-hero-level__rank::after {
        content: "•";
        margin: 0 6px;
        color: #94a3b8;
        font-weight: 500;
    }

    .community-hero-level__level {
        color: #ea580c !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        font-weight: 650 !important;
        text-transform: none !important;
        white-space: nowrap !important;
    }

    .community-hero-level__track {
        grid-column: 1 / -1;
        width: 100% !important;
        height: 4px !important;
        margin: 9px 0 7px !important;
        overflow: hidden !important;
        border-radius: 999px !important;
        background: #edf1f6 !important;
    }

    .community-hero-level__track span {
        display: block !important;
        height: 100% !important;
        border-radius: inherit !important;
        background: #f97316 !important;
    }

    .community-hero-level__xp {
        grid-column: 1 / 3;
        min-width: 0 !important;
        margin: 0 !important;
        color: #7b8794 !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        font-weight: 450 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .community-hero-level__xp--next {
        grid-column: 3;
        justify-self: end !important;
        text-align: right !important;
    }

    .community-hero-pills {
        order: 4;
        justify-content: center !important;
        width: 100% !important;
        margin-top: 14px !important;
    }

    .community-hero-mobile-actions {
        order: 5;
    }
}
