/* Notice and resource detail */
.community-stage--view {
    padding-top: 26px;
}

.community-view-card {
    padding: 28px 46px 24px;
}

.community-view-head {
    padding-bottom: 20px;
    border-bottom: 1px solid #d9e2ed;
}

.community-view-head h2 {
    margin-top: 14px;
    color: #162945;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.45;
}

.community-view-meta {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 16px;
    color: #77869a;
    font-size: 12px;
}

.community-view-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.community-view-meta span + span::before {
    width: 1px;
    height: 13px;
    margin: 0 22px;
    background: #d8e0ea;
    content: '';
}

.community-attachments {
    border-bottom: 1px solid #d9e2ed;
}

.community-attachments a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 12px;
    color: #34465e;
    border-bottom: 1px solid #e8edf3;
    font-size: 13px;
}

.community-attachments a:last-child {
    border-bottom: 0;
}

.community-attachments a:hover strong {
    color: #1261d8;
}

.community-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #1261d8;
    border-radius: 50%;
    background: #eef5ff;
    font-weight: 800;
}

.community-attachments strong {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-attachments em {
    color: #1261d8;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.community-view-content {
    min-height: 240px;
    padding: 28px 10px;
    color: #34465d;
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.community-view-content img,
.community-faq__answer img {
    width: auto;
    max-width: 100%;
    height: auto !important;
}

.community-view-content table,
.community-faq__answer table {
    width: 100% !important;
    max-width: 100%;
}

.community-view-content a,
.community-faq__answer a {
    color: #1261d8;
    text-decoration: underline;
}

.community-view-actions {
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.community-view-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 180px;
    min-height: 52px;
    padding: 10px 24px;
    color: #fff;
    border-radius: 7px;
    background: linear-gradient(135deg, #1672ed 0%, #0757d1 100%);
    box-shadow: 0 6px 14px rgba(18, 97, 216, 0.2);
    font-size: 14px;
    font-weight: 700;
}

.community-view-actions a span {
    font-size: 22px;
    font-weight: 400;
}

/* FAQ accordion */
.community-faq {
    border-bottom: 1px solid #dce4ee;
}

.community-faq__item {
    border-top: 1px solid #dce4ee;
}

.community-faq__item.is-open {
    padding-top: 10px;
}

.community-faq__item:first-child {
    border-top: 0;
}

.community-faq__item h2 {
    margin: 0;
}

.community-faq__item h2 button {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 26px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 10px 14px;
    color: #34465e;
    border: 0;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.community-faq__item h2 button:hover {
    color: #1261d8;
    background: #f8fbff;
}

.community-faq__item.is-open h2 button {
    color: #1261d8;
    border: 1px solid #c8dcf9;
    border-radius: 9px;
    background: #f1f7ff;
    font-weight: 700;
}

.community-faq__question-icon,
.community-faq__answer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #1261d8;
    border-radius: 50%;
    background: #eef5ff;
    font-size: 11px;
    font-weight: 800;
}

.community-faq__item.is-open .community-faq__question-icon {
    color: #fff;
    background: #1261d8;
}

.community-faq__item h2 button i {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
    justify-self: center;
}

.community-faq__item h2 button i::before,
.community-faq__item h2 button i::after {
    position: absolute;
    top: 6px;
    width: 8px;
    height: 1.5px;
    border-radius: 2px;
    background: #6f829e;
    content: '';
}

.community-faq__item h2 button i::before {
    left: 0;
    transform: rotate(42deg);
}

.community-faq__item h2 button i::after {
    right: 0;
    transform: rotate(-42deg);
}

.community-faq__item:not(.is-open) h2 button i::before {
    top: 3px;
    left: 3px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #6f829e;
    border-bottom: 1.5px solid #6f829e;
    border-radius: 0;
    background: transparent;
    transform: rotate(45deg);
}

.community-faq__item:not(.is-open) h2 button i::after {
    display: none;
}

.community-faq__item.is-open h2 button i::before {
    transform: rotate(-42deg);
}

.community-faq__item.is-open h2 button i::after {
    transform: rotate(42deg);
}

.community-faq__answer {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: flex-start;
    gap: 12px;
    padding: 18px 15px 24px;
    color: #4b5d74;
    background: #fff;
    font-size: 13px;
    line-height: 1.75;
}

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

.community-faq__answer-icon {
    color: #da8c26;
    background: #fff3df;
}

.community-faq__answer > div {
    min-width: 0;
    padding-top: 5px;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .community-view-card {
        padding: 26px 30px 24px;
    }
}

@media (max-width: 767px) {
    .community-stage--view {
        padding: 22px 0 46px;
    }

    .community-view-card {
        padding: 20px 16px;
    }

    .community-view-head {
        padding: 2px 2px 18px;
    }

    .community-view-head h2 {
        margin-top: 12px;
        font-size: 20px;
        line-height: 1.45;
    }

    .community-notice-badge {
        min-width: 44px;
        min-height: 26px;
        padding: 3px 10px;
        font-size: 11px;
    }

    .community-view-meta {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        margin-top: 13px;
        font-size: 11px;
    }

    .community-view-meta span + span::before {
        display: block;
        margin: 0 12px;
    }

    .community-view-meta span {
        white-space: nowrap;
    }

    .community-attachments a {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 9px;
        min-height: 62px;
        padding: 10px 2px;
    }

    .community-attachments em {
        grid-column: 2;
        font-size: 11px;
    }

    .community-view-content {
        min-height: 180px;
        padding: 24px 2px;
        font-size: 13px;
        line-height: 1.75;
    }

    .community-view-actions a {
        width: 100%;
        min-width: 0;
        min-height: 48px;
    }

    .community-faq__item h2 button {
        grid-template-columns: 30px minmax(0, 1fr) 18px;
        gap: 9px;
        min-height: 64px;
        padding: 9px 4px;
        font-size: 12px;
        line-height: 1.5;
    }

    .community-faq__item.is-open h2 button {
        padding-right: 9px;
        padding-left: 9px;
    }

    .community-faq__item.is-open {
        padding-top: 8px;
    }

    .community-faq__question-icon,
    .community-faq__answer-icon {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .community-faq__answer {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 9px;
        padding: 15px 6px 20px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .community-view-card {
        padding-right: 13px;
        padding-left: 13px;
    }
}
