﻿/* Community: Figma 122:12208, 122:12423, 122:12686, 122:12988, 122:12855. */
.community-page {
    --community-navy: #0b2e5b;
    --community-gold: #d4af7a;
    --community-cream: #fdfaf3;
    color: var(--community-navy);
}

.community-page .community-board {
    padding: 70px 0;
    background: #fff;
    scroll-margin-top: 120px;
}

.community-page .community-board[data-category="REVIEW"],
.community-page .community-board[data-category="EVENT"] {
    background: var(--community-cream);
}

.community-page .community-container {
    width: min(1400px, calc(100% - var(--site-gutter, 24px) * 2));
    margin-inline: auto;
}

.community-page .community-tabs {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 50px;
}

.community-page .community-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 220px;
    min-height: 60px;
    padding: 16px 12px;
    border: 1px solid var(--community-gold);
    border-radius: 10px;
    background: #fff;
    color: #999;
    font-size: 20px;
    font-weight: 800;
    line-height: 26px;
    letter-spacing: -0.6px;
}

.community-page .community-tab[aria-current="page"] {
    background: var(--community-navy);
    color: #fff;
    border-color: var(--community-navy);
    box-shadow: 2px 6px 12px #6666664d;
}

.community-page .community-tab-count {
    padding: 0 10px;
    border-radius: 20px;
    background: #d4af7a66;
    color: #b99a5a;
    font-size: 16px;
    font-weight: 600;
}

.community-page .community-tab[aria-current="page"] .community-tab-count {
    background: var(--community-gold);
    color: var(--community-navy);
}

.community-page .community-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 8px;
    padding: 18px 30px;
    border-radius: 50px;
    background: var(--community-navy);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: -0.8px;
    box-shadow: 2px 6px 12px #efb76e40;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.community-page .community-button:is(:hover, :focus-visible) {
    transform: translateY(-2px);
}

.community-page .community-button-gold {
    background: linear-gradient(120deg, #c3a163, #d4af7a);
    color: var(--community-navy);
}

.community-page .community-button-outline {
    border: 1px solid var(--community-navy);
    color: var(--community-navy);
    background: transparent;
    box-shadow: 2px 6px 12px #6666660d;
}

.community-page .community-button img {
    flex: none;
}

.community-page .community-pinned {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 40px 70px;
    min-height: 181px;
    margin-bottom: 50px;
    background: var(--community-navy);
    color: #fff;
    border-radius: 10px;
    box-shadow: 2px 6px 12px #6666664d;
}

.community-page .community-pinned-copy {
    display: grid;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.community-page .community-pinned h2 {
    font-size: 20px;
    font-weight: 800;
    line-height: 26px;
    letter-spacing: -0.6px;
    overflow-wrap: anywhere;
}

.community-page .community-pinned p {
    color: #ffffffcc;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.9px;
}

.community-page .community-pinned .community-excerpt {
    -webkit-line-clamp: 1;
    white-space: normal;
}

.community-page .community-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0 20px;
    border-radius: 30px;
    background: #d4af7a66;
    color: #b99a5a;
    font-size: 16px;
    font-weight: 700;
    line-height: 31px;
    letter-spacing: -0.8px;
}

.community-page .community-badge-important {
    padding-inline: 10px;
    background: #c8102e;
    color: #fff;
    font-size: 14px;
}

.community-page .community-notices {
    border-top: 2px solid #555;
}

.community-page .community-notice {
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr) 120px 70px;
    align-items: center;
    gap: 48px;
    min-height: 100px;
    padding: 24px 50px;
    border-bottom: 1px solid #ccc;
}

.community-page .community-notice:last-child {
    border-bottom: 0;
}

.community-page .community-notice-title {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 31px;
    letter-spacing: -0.6px;
}

.community-page .community-notice-title > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-page .community-new {
    flex: none;
    padding: 3px 7px;
    border-radius: 5px;
    background: #c8102e;
    color: #fff;
    font-size: 14px;
    line-height: 17px;
}

.community-page .community-notice time {
    color: #8c8c8c;
    font-size: 16px;
    text-align: center;
}

.community-page .community-views {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: #999;
    font-size: 16px;
    font-weight: 300;
    white-space: nowrap;
}

.community-page .community-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    width: fit-content;
    max-width: 100%;
    padding: 7px;
    margin: 0 auto 50px;
    border: 1px solid var(--community-gold);
    border-radius: 50px;
    background: #fff;
}

.community-page .community-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 10px 40px;
    border-radius: 60px;
    color: #666;
    font-size: 22px;
    font-weight: 600;
    line-height: 26px;
    letter-spacing: -0.66px;
    white-space: nowrap;
}

.community-page .community-filter[aria-current="page"] {
    background: linear-gradient(120deg, #c3a163, #d4af7a);
    color: #fff;
}

.community-page .community-reviews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.community-page .community-review {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    min-height: 322px;
    padding: 40px 30px;
    border: 1px solid var(--community-gold);
    border-radius: 10px;
    background: #fff;
    box-shadow: 2px 6px 12px #6666664d;
}

.community-page .community-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.community-page .community-review-top .community-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    max-width: calc(100% - 110px);
    padding-inline: 10px;
    font-size: 14px;
    letter-spacing: -0.7px;
}

.community-page .community-review-quote {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 96px;
    margin-top: -10px;
    color: var(--community-navy);
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -1px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.community-page .community-rating {
    position: relative;
    width: 140px;
    height: 24px;
    flex: none;
    margin-top: auto;
}

.community-page .community-rating-empty {
    opacity: 0.17;
}

.community-page .community-rating-fill {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
}

.community-page .community-rating img {
    width: 140px;
    height: 24px;
    max-width: none;
}

.community-page .community-review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--community-gold);
}

.community-page .community-review-author {
    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
    letter-spacing: -0.8px;
}

.community-page .community-review-location {
    color: #b99a5a;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: -0.7px;
    overflow-wrap: anywhere;
}

.community-page .community-events {
    display: grid;
    gap: 30px;
}

.community-page .community-event {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 30px;
    min-width: 0;
    border: 1px solid var(--community-gold);
    border-radius: 10px;
    background: #fff;
    box-shadow: 2px 6px 12px #6666664d;
}

.community-page .community-event-ended {
    opacity: 0.5;
}

.community-page .community-event-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 300px;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    background: #ddd;
    color: #666;
    font-size: 18px;
    font-weight: 300;
}

.community-page .community-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-page .community-event-copy {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 14px;
}

.community-page .community-event h2 {
    color: #08264d;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -1.2px;
    overflow-wrap: anywhere;
}

.community-page .community-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #666;
    font-size: 18px;
    font-weight: 300;
    line-height: 27px;
    letter-spacing: -0.9px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.community-page .community-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: #666;
    font-size: 16px;
    line-height: 27px;
    letter-spacing: -0.8px;
}

.community-page .community-event-meta strong {
    color: #08264d;
    font-weight: 700;
    margin-right: 6px;
}

.community-page .community-event-status {
    padding-inline: 10px;
    color: #28a937;
    background: #28a9371a;
    font-size: 14px;
    letter-spacing: -0.7px;
}

.community-page .community-event-status[data-status="upcoming"] {
    color: #c8102e;
    background: #c8102e1a;
}

.community-page .community-event-status[data-status="ended"],
.community-page .community-event-status[data-status="undated"] {
    color: #999;
    background: #9999991a;
}

.community-page .community-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 50px;
}

.community-page .community-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 2px 6px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: #555;
    font-size: 14px;
    line-height: 18px;
}

.community-page .community-page-link[aria-current="page"] {
    background: var(--community-navy);
    border-color: var(--community-navy);
    color: #fff;
}

.community-page .community-page-link[aria-disabled="true"] {
    color: #bbb;
}

.community-page .community-page-gap {
    padding-inline: 4px;
    color: #999;
}

.community-page .community-article {
    border-top: 2px solid var(--community-navy);
}

.community-page .community-article-header {
    display: grid;
    justify-items: start;
    gap: 18px;
    padding: 40px 50px;
    border-bottom: 1px solid #ddd;
}

.community-page .community-article-header h2 {
    font-size: 34px;
    font-weight: 700;
    line-height: 46px;
    letter-spacing: -1.7px;
    overflow-wrap: anywhere;
}

.community-page .community-article-date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 16px;
    line-height: 19px;
}

.community-page .community-article-date time {
    color: #8c8c8c;
}

.community-page .community-article-body {
    display: grid;
    justify-items: center;
    gap: 32px;
    padding: 55px 100px;
}

.community-page .community-article-text {
    width: 100%;
    color: #555;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 20px;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: -1px;
}

.community-page .community-article-image {
    max-width: 100%;
    height: auto;
}

.community-page .community-adjacent {
    border-top: 1px solid var(--community-navy);
}

.community-page .community-adjacent-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 20px;
    min-height: 80px;
    padding: 24px 50px;
    border-bottom: 1px solid #ddd;
}

.community-page .community-adjacent-label {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #555;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.8px;
}

.community-page .community-adjacent-label span {
    color: #b99a5a;
}

.community-page .community-adjacent-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.9px;
}

.community-page .community-adjacent-row[aria-disabled="true"] .community-adjacent-title {
    color: #999;
    font-weight: 400;
}

.community-page .community-adjacent-arrow {
    color: #999;
}

.community-page .community-back {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.community-page .community-message {
    padding: 100px 24px;
    text-align: center;
    color: #666;
    font-size: 18px;
    line-height: 1.8;
}

.community-page .community-message .community-button {
    margin: 24px auto 0;
}

.community-page .community-cta {
    display: grid;
    justify-items: center;
    gap: 30px;
    padding: 70px 24px;
    background: #f9f3e6;
    border-top: 1px solid #b99a5a;
    text-align: center;
}

.community-page .community-cta h2 {
    color: var(--community-navy);
    font-size: 38px;
    font-weight: 800;
    line-height: 55px;
    letter-spacing: -1.9px;
}

.community-page .community-cta h2 span {
    color: #c8102e;
}

.community-page .community-cta p {
    color: #666;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: -1px;
}

.community-page .community-cta .community-button {
    background: #0b2e5b;
    color: #ffffff;
    border: none;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -0.9px;
    box-shadow: 0 2px 5px rgba(11, 46, 91, 0.1);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.community-page .community-cta .community-button:is(:hover, :focus-visible) {
    transform: translateY(-2px);
    box-shadow: 0 3px 7px rgba(11, 46, 91, 0.14);
}

.community-page
    :is(
        .community-tab,
        .community-filter,
        .community-button,
        .community-notice-title,
        .community-review-quote,
        .community-page-link,
        .community-adjacent-row
    ):focus-visible {
    outline: 3px solid #c8102e;
    outline-offset: 5px;
}

.community-page .community-notice-title:hover > span:not(.community-new),
.community-page :is(.community-review-quote, .community-adjacent-row):hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 1200px) {
    .community-page .community-notice {
        grid-template-columns: 70px minmax(0, 1fr) 100px 65px;
        gap: 24px;
        padding-inline: 24px;
    }

    .community-page .community-event {
        gap: 24px;
    }

    .community-page .community-event-image {
        flex-basis: 230px;
        width: 230px;
    }

    .community-page .community-reviews {
        gap: 24px;
    }

    .community-page .community-review {
        padding: 24px;
    }

    .community-page .community-pinned {
        padding-inline: 40px;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .community-page .community-reviews {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-page .community-event {
        display: grid;
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .community-page .community-event > .community-button {
        grid-column: 2;
        justify-self: start;
    }

    .community-page .community-event-image {
        grid-row: span 2;
    }

    .community-page .community-filters {
        gap: 6px;
    }

    .community-page .community-filter {
        padding-inline: 22px;
        font-size: 18px;
    }

    .community-page .community-article-body {
        padding: 40px;
    }

    .community-page .community-article-header {
        padding: 32px 24px;
    }

    .community-page .community-adjacent-row {
        padding-inline: 24px;
    }

    .community-page .community-cta h2 {
        font-size: 30px;
        line-height: 1.5;
    }
}

@media (max-width: 600px) {
    .community-page .community-board {
        padding-block: 40px;
    }

    .community-page .community-tabs {
        gap: 6px;
        margin-bottom: 30px;
    }

    .community-page .community-tab {
        flex: 1;
        width: auto;
        gap: 5px;
        min-height: 50px;
        padding: 10px 4px;
        font-size: 15px;
        letter-spacing: -0.7px;
        border-radius: 7px;
        white-space: nowrap;
    }

    .community-page .community-tab-count {
        font-size: 12px;
        line-height: 22px;
        padding-inline: 6px;
    }

    .community-page .community-pinned {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 28px 24px;
        margin-bottom: 30px;
    }

    .community-page .community-pinned p {
        font-size: 16px;
    }

    .community-page .community-notice {
        grid-template-columns: 56px minmax(0, 1fr) auto;
        gap: 10px 14px;
        padding: 22px 8px;
    }

    .community-page .community-notice .community-badge {
        padding-inline: 14px;
    }

    .community-page .community-notice-title {
        grid-column: span 2;
        gap: 8px;
        font-size: 17px;
        line-height: 26px;
    }

    .community-page .community-notice-title > span:first-child {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .community-page .community-new {
        font-size: 11px;
        padding: 2px 4px;
    }

    .community-page .community-notice time {
        grid-column: 2;
        justify-self: start;
        font-size: 13px;
    }

    .community-page .community-views {
        font-size: 13px;
    }

    .community-page .community-filters {
        width: 100%;
        gap: 2px;
        padding: 5px;
        margin-bottom: 30px;
    }

    .community-page .community-filter {
        flex: 1;
        padding: 8px 4px;
        min-height: 42px;
        font-size: 13px;
        line-height: 20px;
        letter-spacing: -0.6px;
    }

    .community-page .community-reviews {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .community-page .community-review {
        min-height: 300px;
        padding: 30px;
    }

    .community-page .community-event {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 24px;
    }

    .community-page .community-event-image {
        width: 100%;
        height: auto;
        flex: auto;
        aspect-ratio: 3 / 2;
    }

    .community-page .community-event h2 {
        font-size: 22px;
    }

    .community-page .community-event > .community-button {
        align-self: flex-start;
    }

    .community-page .community-article-header {
        padding: 28px 8px;
    }

    .community-page .community-article-header h2 {
        font-size: 26px;
        line-height: 1.4;
        letter-spacing: -1px;
    }

    .community-page .community-article-body {
        padding: 32px 8px;
        gap: 24px;
    }

    .community-page .community-article-text {
        font-size: 17px;
        line-height: 30px;
        letter-spacing: -0.6px;
    }

    .community-page .community-adjacent-row {
        grid-template-columns: 90px minmax(0, 1fr) 10px;
        padding: 20px 8px;
        gap: 10px;
    }

    .community-page .community-adjacent-label {
        gap: 8px;
        font-size: 14px;
    }

    .community-page .community-adjacent-title {
        font-size: 15px;
    }

    .community-page .community-pagination,
    .community-page .community-back {
        margin-top: 30px;
    }

    .community-page .community-cta {
        padding: 48px 24px;
        gap: 24px;
    }

    .community-page .community-cta h2 {
        font-size: 26px;
        letter-spacing: -1.3px;
    }

    .community-page .community-cta p {
        font-size: 16px;
        line-height: 26px;
        letter-spacing: -0.8px;
    }
}
