/*
 * Community landing page, Version 1.0.
 * Scoped to the Community page; native WSC boxes retain ACP configuration.
 */
.communityLanding {
    --communityAccent: #268f79;
    --communitySurface: color-mix(in srgb, currentColor 3%, transparent);
    --communityHover: color-mix(in srgb, currentColor 6%, transparent);
    --communityBorder: color-mix(in srgb, currentColor 12%, transparent);
    --communityMuted: color-mix(in srgb, currentColor 64%, transparent);
    margin-top: 8px;
}
.communityLandingGroups {
    display: grid;
    gap: 22px;
}
.communityLandingGroup {
    --communityGroupAccent: var(--wcfStatusInfoBorder);
    min-width: 0;
    border: 1px solid var(--communityBorder);
    border-radius: 10px;
    background: var(--communitySurface);
    overflow: hidden;
    box-shadow: 0 2px 10px color-mix(in srgb, black 6%, transparent);
}
/* Distinct classes make the native WSC style palette easy to override. */
.communityLandingGroup--info { --communityGroupAccent: var(--wcfStatusInfoBorder); }
.communityLandingGroup--success { --communityGroupAccent: var(--wcfStatusSuccessBorder); }
.communityLandingGroup--warning { --communityGroupAccent: var(--wcfStatusWarningBorder); }
.communityLandingGroup--error { --communityGroupAccent: var(--wcfStatusErrorBorder); }
.communityLandingGroupHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 70px;
    padding: 18px 22px;
    cursor: pointer;
}
.communityLandingGroupTitle {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
}
.communityLandingGroupToggle {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--communityBorder);
    border-radius: 8px;
    padding: 0;
    color: inherit;
    background: var(--communitySurface);
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s ease, background-color .15s ease;
}
.communityLandingGroup:hover .communityLandingGroupToggle,
.communityLandingGroupToggle:focus-visible { opacity: 1; }
.communityLandingGroupToggle:hover { background: var(--communityHover); }
.communityLandingTogglePlus,
.communityLandingGroupToggle[aria-expanded="false"] .communityLandingToggleMinus { display: none; }
.communityLandingGroupToggle[aria-expanded="false"] .communityLandingTogglePlus { display: inline; }
.communityLandingGroupBody { border-top: 4px solid var(--communityGroupAccent); }
.communityLandingGroupBody[hidden] { display: none !important; }
.communityLandingGroup:has(.communityLandingGroupBody[hidden]) .communityLandingGroupHeader {
    border-bottom: 4px solid var(--communityGroupAccent);
}
.communityLandingCategory {
    display: grid;
    grid-template-columns: minmax(210px, 35%) minmax(0, 1fr);
    min-width: 0;
}
.communityLandingCategory + .communityLandingCategory {
    border-top: 4px solid var(--communityGroupAccent);
}
.communityLandingCategoryOverview {
    min-width: 0;
    padding: 15px;
    border-right: 1px solid var(--communityBorder);
}
.communityLandingCategoryMedia {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 7px;
    overflow: hidden;
    background: var(--communityHover);
}
.communityLandingCategoryMedia img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}
.communityLandingCategoryMedia:hover img { transform: scale(1.035); }
.communityLandingCategoryPlaceholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 2.4rem;
    color: var(--communityGroupAccent);
    background: linear-gradient(145deg, color-mix(in srgb, var(--communityGroupAccent) 19%, transparent), transparent 85%);
}
.communityLandingCategoryOverviewBody { padding: 14px 4px 4px; }
.communityLandingCategoryName {
    margin: 0 0 7px;
    color: var(--communityGroupAccent);
    font-size: 1rem;
    font-weight: 700;
}
.communityLandingCategoryName a { color: inherit; }
.communityLandingCategoryDescription {
    margin: 0 0 14px;
    color: var(--communityMuted);
    line-height: 1.55;
}
.communityLandingCategoryDescription p { margin: 0 0 9px; }
.communityLandingCategoryDescription p:last-child { margin-bottom: 0; }
.communityLandingCategoryDescription a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.communityLandingCategoryStats {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 12px;
    color: var(--communityMuted);
    font-size: .82rem;
    font-weight: 600;
}
.communityLandingCategoryStatsRow {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 13px;
    max-width: 100%;
}
.communityLandingCategoryStatsRow > span {
    white-space: nowrap;
}
.communityLandingCategoryTopics { min-width: 0; }
.communityLandingTopicList {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    list-style: none;
    padding: 0;
    margin: 0;
}
.communityLandingTopicItem {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 63px;
    padding: 10px 15px;
}
.communityLandingTopicItem + .communityLandingTopicItem {
    border-top: 1px solid var(--communityBorder);
}
.communityLandingTopicItem:hover { background: var(--communitySurface); }
.communityLandingTopicAvatar {
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.communityLandingTopicAvatar img {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.communityLandingTopicDetails { min-width: 0; flex: 1 1 auto; }
.communityLandingTopicTitle {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    white-space: nowrap;
    margin: 0;
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.4;
}
.communityLandingTopicTitle .communityLandingTopicSubject {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
}
.communityLandingTopicFirstLabel {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.communityLandingTopicMeta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
    color: var(--communityMuted);
    font-size: .78rem;
}
.communityLandingTopicIndicators {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-left: auto;
    color: var(--communityMuted);
    font-size: .78rem;
    white-space: nowrap;
}
.communityLandingTopicAttachment {
    display: inline-flex;
    align-items: center;
}
.communityLandingTopicReplies {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 32px;
    justify-content: flex-end;
}
.communityLandingTopicReplyIcon {
    display: inline-flex;
    align-items: center;
}
.communityLandingTopicReplyLabel,
.communityLandingTopicViewsLabel { display: none; }
.communityLandingTopicViews {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}
.communityLandingTopicViewsIcon {
    display: inline-flex;
    align-items: center;
}
.communityLandingTopicViewsCount,
.communityLandingTopicReplyCount {
    font-variant-numeric: tabular-nums;
}
@media (hover: hover) {
    .communityLandingTopicItem:hover .communityLandingTopicReplyIcon,
    .communityLandingTopicItem:focus-within .communityLandingTopicReplyIcon { display: none; }
    .communityLandingTopicItem:hover .communityLandingTopicReplyLabel,
    .communityLandingTopicItem:focus-within .communityLandingTopicReplyLabel,
    .communityLandingTopicItem:hover .communityLandingTopicViewsLabel,
    .communityLandingTopicItem:focus-within .communityLandingTopicViewsLabel { display: inline; }
    .communityLandingTopicItem:hover .communityLandingTopicViewsIcon,
    .communityLandingTopicItem:focus-within .communityLandingTopicViewsIcon { display: none; }
}
.communityLandingCategoryEmpty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 165px;
    gap: 8px;
    padding: 24px;
    color: var(--communityMuted);
    text-align: center;
}
.communityLandingCategoryEmpty > span:first-child { font-size: 1.7rem; }
.communityLandingChooser { display: grid; gap: 16px; }
.communityLandingChooser[hidden] { display: none !important; }
.communityLandingChooserGroup + .communityLandingChooserGroup { margin-top: 18px; }
.communityLandingChooserGroupTitle {
    margin: 0 0 12px;
    padding: 0 0 9px;
    border-bottom: 3px solid var(--communityAccent);
    font-size: 1.05rem;
}
.communityLandingChooserList { padding: 0; margin: 0; list-style: none; }
.communityLandingChooserList li + li { margin-top: 7px; }
.communityLandingChooserOption {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border: 1px solid var(--communityBorder);
    border-radius: 8px;
    background: var(--communitySurface);
    color: inherit;
    text-decoration: none;
}
.communityLandingChooserOption:hover,
.communityLandingChooserOption:focus-visible {
    border-color: var(--communityAccent);
    background: var(--communityHover);
    color: inherit;
}
.communityLandingChooserIcon { flex: 0 0 auto; font-size: 1.2rem; }
.communityLandingChooserText { flex: 1 1 auto; min-width: 0; }
.communityLandingChooserText strong,
.communityLandingChooserText small { display: block; }
.communityLandingChooserText small {
    margin-top: 3px;
    color: var(--communityMuted);
    font-weight: 400;
}
.communityLandingChooserArrow { color: var(--communityAccent); }

#main.communityLandingActive .boxesSidebarRight .box {
    border-radius: 10px;
}
@media (min-width: 1001px) {
    #main.communityLandingActive .sidebar.boxesSidebarRight {
        --communitySidebarHeight: 0px;
        align-self: flex-start;
        position: sticky;
        top: var(--communityStickyTop, 16px);
        max-height: none;
        overflow: visible;
    }
}
@media (max-width: 1199px) {
    .communityLandingCategory { grid-template-columns: minmax(190px, 39%) minmax(0, 1fr); }
    .communityLandingTopicIndicators { gap: 9px; font-size: .75rem; }
}
@media (max-width: 760px) {
    .communityLandingGroups { gap: 16px; }
    .communityLandingGroupHeader { min-height: 61px; padding: 14px 16px; }
    .communityLandingGroupToggle { opacity: 1; }
    .communityLandingCategory { display: block; }
    .communityLandingCategoryOverview {
        display: grid;
        grid-template-columns: minmax(105px, 35%) minmax(0, 1fr);
        gap: 13px;
        border-right: 0;
        border-bottom: 1px solid var(--communityBorder);
    }
    .communityLandingCategoryOverviewBody { padding: 3px 0; }
    .communityLandingCategoryMedia { aspect-ratio: 4 / 3; }
    .communityLandingTopicItem { min-height: 60px; }
}
@media (max-width: 440px) {
    .communityLandingCategoryOverview { grid-template-columns: minmax(0, 1fr); }
    .communityLandingCategoryMedia { aspect-ratio: 16 / 8; }
    .communityLandingTopicAvatar { flex-basis: 28px; }
    .communityLandingTopicAvatar img { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .communityLandingCategoryMedia img, .communityLandingGroupToggle { transition: none; }
}


/* Personal Community navigation: native WSC sidebar box */
.communitySidebarNavigation { min-width: 0; }
.communitySidebarNavigation ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.communitySidebarNavigation a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    min-width: 0;
    border: 1px solid color-mix(in srgb, currentColor 13%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, currentColor 3%, transparent);
    color: var(--wcfContentLink, #087e73);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}
.communitySidebarNavigation a fa-icon { flex: 0 0 auto; }
.communitySidebarNavigation a span { min-width: 0; overflow-wrap: anywhere; }
.communitySidebarNavigation a:hover,
.communitySidebarNavigation a:focus-visible {
    background: color-mix(in srgb, currentColor 7%, transparent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Personal lists: compact two-column cards, row-major chronology */
.communityUtilityPage { min-width: 0; padding: 4px 0 24px; }
.communityUtilityPage > h1 { margin: 0 0 20px; font-size: 1.6rem; }
.communityUtilityList {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 13px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}
.communityUtilityItem {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 18px 19px 17px;
    border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
    border-radius: 10px;
    background: var(--wcfContentBackground);
    box-shadow: 0 3px 12px rgba(20, 38, 45, .045);
}
.communityUtilityItem h2 {
    margin: 9px 0 8px;
    min-width: 0;
    font-size: 1.02rem;
    line-height: 1.45;
    font-weight: 700;
}
.communityUtilityItem h2 a {
    color: var(--wcfContentLink);
    overflow-wrap: anywhere;
    text-decoration: none;
}
.communityUtilityItem h2 a:hover { text-decoration: underline; }
.communityUtilityMeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--wcfContentDimmedText);
    font-size: .82rem;
    line-height: 1.5;
}
.communityUtilityMeta a {
    color: var(--wcfContentLink);
    text-decoration: none;
}
.communityUtilityMeta a:hover { text-decoration: underline; }
.communityUtilityByline { margin-top: auto; padding-top: 10px; }
.communityUtilityTaxonomy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 12px;
    min-width: 0;
    padding-top: 3px;
}
.communityUtilityLabels, .communityUtilityTags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 7px;
    min-width: 0;
}
.communityUtilityLabels a { text-decoration: none; }
.communityUtilityTags .tagList { margin: 0; }
.communityUtilityDescription {
    margin: 4px 0 0;
    color: var(--wcfContentDimmedText);
    line-height: 1.5;
    overflow-wrap: anywhere;
}
@media (max-width: 820px) {
    .communityUtilityList { grid-template-columns: minmax(0, 1fr); }
    .communityUtilityItem { padding: 15px 16px; }
}

/* Category detail and topic list — Version 1.0 */

/* Alpha 10: the complete statistics card can also follow the topic list. */
.communityCategoryStatisticsBottom > .communityCategoryStatistics { margin: 20px 0 0; }

/* Alpha 11: unobtrusive, unboxed compact counters pinned to the hero's
   lower-left content edge. Hover/focus swaps the icon for human-readable text. */
.communityCategoryHero--compactStatistics .communityCategoryHeroContent {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}
.communityCategoryHeroStatistics {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 18px;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    color: var(--communityCategoryMuted);
    font-size: .83rem;
    line-height: 1.45;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}
.communityCategoryHeroStat {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-weight: 400;
    white-space: nowrap;
}
.communityCategoryHeroStatDefault {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}
.communityCategoryHeroStatDefault fa-icon { font-size: .81rem; }
.communityCategoryHeroStatExpanded {
    display: none;
    flex-direction: column;
    gap: 1px;
    font-weight: 400;
}
.communityCategoryHeroStatAverage {
    color: var(--communityCategoryMuted);
    font-size: .74rem;
    font-weight: 400;
    line-height: 1.45;
}
.communityCategoryHeroStat:hover,
.communityCategoryHeroStat:focus-visible { color: inherit; }
.communityCategoryHeroStat:focus-visible {
    outline: 2px solid var(--wcfContentLink);
    outline-offset: 4px;
}
.communityCategoryHeroStat:hover .communityCategoryHeroStatDefault,
.communityCategoryHeroStat:focus-visible .communityCategoryHeroStatDefault { display: none; }
.communityCategoryHeroStat:hover .communityCategoryHeroStatExpanded,
.communityCategoryHeroStat:focus-visible .communityCategoryHeroStatExpanded { display: flex; }
@media (max-width: 610px) {
    .communityCategoryHeroStatistics { gap: 8px 14px; padding-top: 18px; }
    .communityCategoryHeroStat { white-space: normal; }
}

/* Alpha 9: compact, public-only category metrics */
.communityCategoryStatistics {
    margin: 0 0 20px;
    padding: 16px 18px 18px;
    border: 1px solid var(--communityCategoryBorder);
    border-radius: 10px;
    background: var(--communityCategorySurface);
}
.communityCategoryStatisticsHeader {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-bottom: 13px;
}
.communityCategoryStatisticsHeader h3 {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    font-size: .94rem;
    font-weight: 700;
}
.communityCategoryStatisticsHeader p {
    margin: 0;
    color: var(--communityCategoryMuted);
    font-size: .76rem;
}
.communityCategoryStatisticsGrid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}
.communityCategoryStat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    gap: 9px;
    padding: 11px 12px;
    background: color-mix(in srgb, currentColor 3%, transparent);
    border-radius: 8px;
}
.communityCategoryStatLabel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .76rem;
    line-height: 1.35;
    color: var(--communityCategoryMuted);
}
.communityCategoryStatLabel fa-icon { flex: 0 0 auto; }
.communityCategoryStat strong {
    font-size: 1.17rem;
    font-weight: 750;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.communityCategoryStat--average strong { font-size: 1.09rem; }
@media (max-width: 1150px) {
    .communityCategoryStatisticsGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 610px) {
    .communityCategoryStatistics { padding: 13px; }
    .communityCategoryStatisticsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Alpha 9: show two tags until hover, keyboard focus or deliberate expansion */
.communityCategoryTopicTags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
}
.communityCategoryTopicTags .entry_tags { margin: 0; min-width: 0; }
.communityCategoryTopicTags .tagList { margin: 0; }
.communityCategoryTopicTags .tagList > li:nth-child(n+3) { display: none; }
.communityCategoryTopicRow:hover .communityCategoryTopicTags .tagList > li:nth-child(n+3),
.communityCategoryTopicRow:focus-within .communityCategoryTopicTags .tagList > li:nth-child(n+3),
.communityCategoryTopicRow--tagsExpanded .communityCategoryTopicTags .tagList > li:nth-child(n+3) {
    display: inline-flex;
}
.communityCategoryMoreTags {
    padding: 2px 8px;
    border: 1px solid var(--communityCategoryBorder);
    border-radius: 999px;
    color: var(--communityCategoryMuted);
    font-size: .75rem;
    background: transparent;
    cursor: pointer;
    line-height: 1.4;
}
.communityCategoryMoreTags:hover,
.communityCategoryMoreTags:focus-visible {
    color: var(--wcfContentLink);
    border-color: currentColor;
}
@media (hover: hover) {
    .communityCategoryTopicRow:hover .communityCategoryMoreTags { visibility: hidden; }
}

.communityCategoryView {
    --communityCategoryBorder: color-mix(in srgb, currentColor 12%, transparent);
    --communityCategoryMuted: color-mix(in srgb, currentColor 65%, transparent);
    --communityCategorySurface: color-mix(in srgb, currentColor 3%, transparent);
    --communityCategoryHover: color-mix(in srgb, currentColor 6%, transparent);
    min-width: 0;
    margin-top: 8px;
}
.communityCategoryHero {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    min-height: 170px;
    margin-bottom: 24px;
    padding: 27px 30px;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--communityCategoryBorder);
    border-left: 5px solid var(--wcfContentLink, var(--wcfStatusInfoBorder));
    border-radius: 10px;
    background: var(--communityCategorySurface);
}
.communityCategoryHeroImage {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(60%, 740px);
    z-index: -1;
    background-position: center right;
    background-size: cover;
    opacity: .28;
    -webkit-mask-image: linear-gradient(to right, transparent, black 45%);
    mask-image: linear-gradient(to right, transparent, black 45%);
    pointer-events: none;
}
.communityCategoryHeroImage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.communityCategoryHeroContent {
    flex: 1 1 auto;
    min-width: 0;
}
.communityCategoryHeroTitle {
    margin: 0 0 14px;
    font-size: clamp(1.45rem, 2.2vw, 2.1rem);
    line-height: 1.2;
    font-weight: 750;
}
.communityCategoryHeroDescription {
    max-width: 780px;
    line-height: 1.6;
    color: var(--communityCategoryMuted);
}
.communityCategoryHeroDescription p { margin: 0 0 10px; }
.communityCategoryHeroDescription p:last-child { margin-bottom: 0; }
.communityCategoryHeroDescription a { text-decoration: underline; }
.communityCategoryHeroActions {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    gap: 11px;
    flex: 0 0 auto;
    z-index: 1;
}
.communityCategoryFollow { margin-top: auto; }
.communityCategoryCreateButton { white-space: nowrap; }
.communityCategoryFollow .contentInteractionButton { margin: 0; }
.communityCategoryFollow .dropdown > .button { margin: 0; }

.communityCategoryListSection {
    min-width: 0;
    border: 1px solid var(--communityCategoryBorder);
    border-radius: 10px;
    overflow: visible;
    background: var(--communityCategorySurface);
}
.communityCategoryToolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 19px;
    border-bottom: 1px solid var(--communityCategoryBorder);
    border-radius: 10px 10px 0 0;
}
.communityCategoryListCaption h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
}
.communityCategoryListControls {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
}
.communityCategoryListControls > button,
.communityCategorySortMenu > summary {
    white-space: nowrap;
}
.communityCategorySortMenu { position: relative; z-index: 10; }
.communityCategorySortMenu > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
}
.communityCategorySortMenu > summary::-webkit-details-marker { display: none; }
.communityCategorySortOptions {
    display: grid;
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    min-width: 195px;
    padding: 6px;
    background: var(--wcfContentBackground, #1e2320);
    border: 1px solid var(--communityCategoryBorder);
    border-radius: 8px;
    box-shadow: 0 12px 30px color-mix(in srgb, black 24%, transparent);
}
.communityCategorySortOptions button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
    padding: 10px 12px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.communityCategorySortSelectedIcon {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}
.communityCategorySortOptions button:hover,
.communityCategorySortOptions button:focus-visible,
.communityCategorySortOptions button.active {
    background: var(--communityCategoryHover);
    color: var(--wcfContentLink, inherit);
}
.communityCategoryActiveFilter {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 19px;
    font-size: .85rem;
    border-bottom: 1px solid var(--communityCategoryBorder);
    color: var(--communityCategoryMuted);
}
.communityCategoryActiveFilter a { margin-left: auto; }
.communityCategoryListCaption { min-width: 0; flex: 1 1 auto; }
.communityCategoryPagination { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 13px 19px; }
.communityCategoryPagination--top { padding: 0; }
.communityCategoryPagination--bottom { border-top: 1px solid var(--communityCategoryBorder); }
.communityCategoryPagination woltlab-core-pagination { flex: 0 1 auto; min-width: 0; }
.communityCategoryPageJump { position: relative; z-index: 11; }
.communityCategoryPageJump > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}
.communityCategoryPageJump > summary::-webkit-details-marker { display: none; }
.communityCategoryPageJumpForm {
    position: absolute;
    z-index: 15;
    left: 0;
    top: calc(100% + 5px);
    min-width: 195px;
    padding: 14px;
    border-radius: 9px;
    border: 1px solid var(--communityCategoryBorder);
    background: var(--wcfContentBackground, #1e2320);
    box-shadow: 0 12px 28px color-mix(in srgb, black 23%, transparent);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.communityCategoryPageJumpForm label { display: flex; flex-direction: column; gap: 6px; }
.communityCategoryPageJumpForm input { width: 100%; box-sizing: border-box; }
.communityCategoryMarkRead { display: inline-flex; margin: 0; }
.communityCategoryMarkRead button { white-space: nowrap; }

.communityCategoryTopicList {
    padding: 0;
    margin: 0;
    list-style: none;
}
.communityCategoryTopicRow {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 128px minmax(125px, 165px);
    align-items: center;
    column-gap: 17px;
    min-height: 108px;
    padding: 16px 19px;
}
.communityCategoryTopicRow + .communityCategoryTopicRow { border-top: 1px solid var(--communityCategoryBorder); }
.communityCategoryTopicRow[data-topic-url] { cursor: pointer; }
.communityCategoryTopicRow--unread { box-shadow: inset 3px 0 var(--wcfContentLink, #87bc30); }
.communityCategoryTopicRow--unread .communityCategoryTopicSubject { font-weight: 800; }
.communityCategoryUnreadBadge { color: var(--wcfContentLink, #87bc30); display: inline-flex; align-items: center; }

.communityCategoryTopicRow:hover { background: var(--communityCategorySurface); }
.communityCategoryTopicRow--deleted { opacity: .72; }
.communityCategoryTopicAvatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
}
.communityCategoryTopicMain { min-width: 0; }
.communityCategoryProductLink {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    line-height: 1.35;
    font-weight: 600;
    margin-bottom: 4px;
    max-width: 100%;
    color: var(--wcfContentLink);
}
.communityCategoryProductLink span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.communityCategoryTopicTitle {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 9px;
    font-size: 1.15rem;
    line-height: 1.38;
    font-weight: 700;
    margin: 0;
}
.communityCategoryTopicSubject { color: inherit; overflow-wrap: anywhere; }
.communityCategoryTopicLabel { font-size: .83rem; font-weight: 500; white-space: nowrap; }
.communityCategoryTopicTags { margin-top: 5px; font-size: .78rem; }
.communityCategoryTopicMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
    align-items: center;
    font-size: .82rem;
    margin-top: 4px;
    color: var(--communityCategoryMuted);
}
.communityCategoryTopicState { margin-left: 4px; }
.communityCategoryTopicCounters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: end;
    gap: 5px;
    font-size: .82rem;
    color: var(--communityCategoryMuted);
}
.communityCategoryTopicCounter {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.communityCategoryTopicCounterIcon { display: inline-flex; align-items: center; }
.communityCategoryTopicCounterCount,
.communityCategoryTopicCounterLabel { display: none; }
@media (hover: hover) {
    .communityCategoryTopicRow:hover .communityCategoryTopicCounterIcon,
    .communityCategoryTopicRow:focus-within .communityCategoryTopicCounterIcon { display: none; }
    .communityCategoryTopicRow:hover .communityCategoryTopicCounterCount,
    .communityCategoryTopicRow:hover .communityCategoryTopicCounterLabel,
    .communityCategoryTopicRow:focus-within .communityCategoryTopicCounterCount,
    .communityCategoryTopicRow:focus-within .communityCategoryTopicCounterLabel { display: inline; }
}
@media (hover: none) {
    .communityCategoryTopicCounterCount { display: inline; }
}
.communityCategoryTopicAttachment { padding-top: 2px; }
.communityCategoryTopicLastPost {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    font-size: .82rem;
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: anywhere;
}
.communityCategoryTopicLastPost > span { color: var(--communityCategoryMuted); }
.communityCategoryLastPostDate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
}
.communityCategoryLastPostDate fa-icon {
    flex: 0 0 auto;
    color: var(--communityCategoryMuted);
}
.communityCategoryEmpty { text-align: center; padding: 45px 20px; color: var(--communityCategoryMuted); }
.communityCategoryBack { margin: 24px 3px; }
.communityCategoryFilterDialog { min-width: min(570px, 100%); }
.communityCategoryFilterGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}
.communityCategoryFilterGrid h3 { margin: 0 0 16px; font-size: 1.06rem; }
.communityCategoryFilterGrid label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
}
.communityCategoryFilterGrid select {
    display: block;
    width: 100%;
    max-width: 100%;
}
.communityCategoryFilterActions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}
@media (min-width: 1001px) {
    #main.communityCategoryActive .sidebar.boxesSidebarLeft,
    #main.communityCategoryActive .sidebar.boxesSidebarRight {
        align-self: flex-start;
        position: sticky;
        top: var(--communityStickyTop, 16px);
        max-height: none;
        overflow: visible;
    }
}
@media (max-width: 1199px) {
    .communityCategoryTopicRow {
        grid-template-columns: 40px minmax(0, 1fr) 99px 125px;
        gap: 12px;
        padding: 14px;
    }
}
@media (max-width: 850px) {
    .communityCategoryTopicRow {
        grid-template-columns: 40px minmax(0, 1fr) 105px;
    }
    .communityCategoryTopicLastPost {
        grid-column: 2 / -1;
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        padding-left: 0;
    }
    .communityCategoryTopicCounters { grid-column: 3; grid-row: 1; }
}
@media (max-width: 630px) {
    .communityCategoryHero { flex-wrap: wrap; padding: 20px; gap: 18px; }
    .communityCategoryHeroImage { width: 85%; opacity: .16; }
    .communityCategoryHeroActions { width: 100%; flex-direction: row; align-items: center; flex-wrap: wrap; }
    .communityCategoryFollow { margin-top: 0; }
    .communityCategoryPageJumpForm { left: auto; right: 0; }
    .communityCategoryMarkRead { margin-left: auto; }
    .communityCategoryMarkRead button span { display: none; }
    .communityCategoryToolbar { flex-wrap: wrap; }
    .communityCategoryListControls { width: 100%; }
    .communityCategoryTopicRow {
        grid-template-columns: 36px minmax(0, 1fr);
        row-gap: 9px;
    }
    .communityCategoryTopicAvatar img { width: 34px; height: 34px; }
    .communityCategoryTopicCounters {
        grid-column: 2;
        grid-row: auto;
        display: flex;
        gap: 18px;
        justify-content: flex-start;
    }
    .communityCategoryTopicCounter { width: auto; }
    .communityCategoryTopicLastPost { grid-column: 2; }
    .communityCategoryFilterGrid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .communityCategoryHeroImage,
    .communityCategoryTopicRow { transition: none; }
}


/* Topic detail design — Version 1.0 */
.communityTopicView {
    --communityTopicBorder: color-mix(in srgb, currentColor 12%, transparent);
    --communityTopicMuted: color-mix(in srgb, currentColor 65%, transparent);
    --communityTopicSurface: color-mix(in srgb, currentColor 3%, transparent);
    --communityTopicHover: color-mix(in srgb, currentColor 6%, transparent);
    min-width: 0;
    margin-top: 8px;
}
.communityTopicHero {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 24px;
    min-height: 190px;
    padding: 26px 30px;
    margin-bottom: 24px;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--communityTopicBorder);
    border-left: 5px solid var(--wcfContentLink, #4f8d36);
    border-radius: 10px;
    background: var(--communityTopicSurface);
}
.communityTopicHeroImage {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(56%, 650px);
    z-index: -1;
    opacity: .19;
    -webkit-mask-image: linear-gradient(to right, transparent, black 45%);
    mask-image: linear-gradient(to right, transparent, black 45%);
    pointer-events: none;
}
.communityTopicHeroImage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.communityTopicHeroContent { flex: 1 1 auto; min-width: 0; }
.communityTopicHeroKicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: .83rem;
    color: var(--communityTopicMuted);
}
.communityTopicHeroKicker a { color: var(--wcfContentLink); }
.communityTopicHeroKicker > span:not([aria-hidden]) { display: inline-flex; align-items: center; gap: 5px; }
.communityTopicHeroProduct {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: var(--wcfContentLink);
    font-size: .87rem;
    font-weight: 650;
    margin-bottom: 7px;
}
.communityTopicHeroTitle {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 2.2vw, 2.1rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
    font-weight: 750;
}
.communityTopicLabels { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 7px; }
.communityTopicHeroTags { margin-top: 6px; }
.communityTopicHeroMeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--communityTopicMuted);
    font-size: .83rem;
}
.communityTopicHeroAuthor {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.communityTopicHeroAuthor img { width: 24px; height: 24px; border-radius: 50%; }
.communityTopicHeroAuthorLabel { color: var(--communityTopicMuted); font-weight: 500; margin-right: 2px; }
.communityTopicHeroMetaCount {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.communityTopicHeroActions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    z-index: 1;
}
.communityTopicHeroActions .communityReplyJump { white-space: nowrap; }
.communityTopicHeroFollow { margin-top: auto; }
.communityTopicHeroFollow .contentInteractionButton { margin: 0; }
.communityTopicPosts { min-width: 0; }
.communityTopicPosts > .info,
.communityTopicPosts > .warning { margin-bottom: 18px; }
.communityTopicMessageList {
    display: grid;
    gap: 17px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.communityTopicMessageList > li { min-width: 0; margin: 0; }
.communityTopicMessage {
    border: 1px solid var(--communityTopicBorder);
    border-radius: 10px;
    background: var(--communityTopicSurface);
    overflow: hidden;
    margin: 0;
}
.communityTopicMessage .messageHeader {
    padding: 16px 20px;
    border-bottom: 1px solid var(--communityTopicBorder);
    background: var(--communityTopicHover);
}
.communityTopicMessage--opening {
    border-left: 4px solid var(--wcfContentLink, #4f8d36);
    background: color-mix(in srgb, var(--wcfContentLink, #4f8d36) 3%, var(--wcfContentBackground, #1e2320));
}
.communityTopicMessage--opening .messageHeader {
    background: color-mix(in srgb, var(--wcfContentLink, #4f8d36) 9%, var(--wcfContentBackground, #1e2320));
}
.communityTopicOpeningBadge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin: 0 0 6px;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: .79rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--wcfContentLink, #4f8d36);
    background: color-mix(in srgb, var(--wcfContentLink, #4f8d36) 10%, transparent);
}
.communityTopicStarterBadge {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 4px;
    color: var(--wcfContentLink, #4f8d36);
}
.communityTopicMessage .messageHeaderBox {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.communityTopicPostAvatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}
.communityTopicPostAvatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
}
.communityTopicMessage .messageHeaderMetaData {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.65;
}
.communityTopicMessage .messageHeaderMetaData .username { font-weight: 700; }
.communityTopicMessage .messageBody { padding: 22px 24px; min-height: 88px; }
.communityTopicMessage .messageBody .messageText { overflow-wrap: anywhere; }
.communityTopicMessage .messageFooter {
    padding: 10px 18px;
    border-top: 1px solid var(--communityTopicBorder);
    background: var(--communityTopicSurface);
}
.communityTopicPosts > woltlab-core-pagination {
    display: block;
    margin: 16px 0 0;
}
.communityTopicReplySection {
    margin-top: 24px;
    padding: 23px 25px;
    border: 1px solid var(--communityTopicBorder);
    border-radius: 10px;
    background: var(--communityTopicSurface);
}
.communityTopicReplyTitle {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 17px;
    font-size: 1.25rem;
}
.communityTopicBack { margin: 23px 3px 16px; }
@media (min-width: 1001px) {
    #main.communityTopicActive .sidebar.boxesSidebarLeft,
    #main.communityTopicActive .sidebar.boxesSidebarRight {
        position: sticky;
        align-self: flex-start;
        top: var(--communityStickyTop, 16px);
        max-height: none;
        overflow: visible;
    }
}
@media (max-width: 700px) {
    .communityTopicHero { flex-wrap: wrap; padding: 20px; gap: 15px; }
    .communityTopicHeroImage { width: 85%; opacity: .14; }
    .communityTopicHeroActions {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .communityTopicHeroFollow { margin-top: 0; }
    .communityTopicMessage .messageHeader { padding: 13px 14px; }
    .communityTopicMessage .messageBody { padding: 16px; }
    .communityTopicMessage .messageFooter { padding: 10px 13px; }
    .communityTopicReplySection { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .communityTopicHeroImage { transition: none; }
}


/* Topic view refinement — Version 1.0 */
.communityTopicHero { flex-wrap: wrap; column-gap: 24px; row-gap: 0; }
.communityTopicHeroContent { align-self: flex-start; }
.communityTopicHeroActions { align-self: stretch; }
.communityTopicHeroImage { opacity: .16; }
.communityTopicOpeningMessage {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    margin-top: 21px;
    border-top: 1px solid var(--communityTopicBorder);
    background: transparent;
}
.communityTopicOpeningHeading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0 0;
    color: var(--wcfContentLink);
    font-size: .85rem;
    font-weight: 700;
}
.communityTopicOpeningHeading > span { display: inline-flex; align-items: center; gap: 7px; }
.communityTopicOpeningPermalink { color: var(--communityTopicMuted); font-weight: 600; font-variant-numeric: tabular-nums; }
.communityTopicOpeningMessage .messageBody { margin: 0; padding: 17px 0 21px; min-height: 0; }
.communityTopicOpeningMessage .messageBody .messageText { overflow-wrap: anywhere; }
.communityTopicOpeningMessage .communityTopicPostFooter {
    margin: 0 -30px -26px;
    padding: 10px 20px;
    border-top: 1px solid var(--communityTopicBorder);
    background: var(--communityTopicSurface);
    border-radius: 0 0 10px 5px;
}
.communityTopicMessageList { gap: 8px; }
.communityTopicMessageList > li { border: 0; }
.communityTopicMessage {
    margin: 0;
    border: 1px solid var(--communityTopicBorder);
}
.communityTopicMessage .messageContent { padding: 0; margin: 0; }
.communityTopicMessage .messageHeader {
    margin: 0;
    padding: 10px 15px;
    border-bottom: 0;
    background: var(--communityTopicSurface);
}
.communityTopicMessage .messageHeaderBox { gap: 10px; }
.communityTopicPostAvatar, .communityTopicPostAvatar img { height: 32px; width: 32px; }
.communityTopicPostAvatar { flex-basis: 32px; }
.communityTopicMessage .messageHeaderMetaData {
    font-size: .84rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--communityTopicMuted);
}
.communityTopicPostPermalink {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: .83rem;
    font-weight: 650;
    color: var(--communityTopicMuted);
    font-variant-numeric: tabular-nums;
}
.communityTopicMessage .messageBody {
    margin: 0;
    padding: 12px 18px 17px;
    min-height: 0;
}
.communityTopicMessage .messageFooter {
    margin: 0;
    padding: 9px 13px;
    border-top: 1px solid var(--communityTopicBorder);
    background: var(--communityTopicSurface);
}
.communityTopicPostFooter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}
.communityTopicFooterButtons {
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 7px;
    background: var(--communityTopicHover);
}
.communityTopicFooterButtons > a,
.communityTopicFooterButtons > button,
.communityTopicFooterButtons > .communityTopicMiniAction > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
}
.communityTopicFooterButtons > :not(:first-child) {
    border-left: 1px solid var(--communityTopicBorder);
}
.communityTopicFooterButtons > a:hover,
.communityTopicFooterButtons > button:hover,
.communityTopicFooterButtons > .communityTopicMiniAction > button:hover {
    background: var(--communityTopicHover);
}
.communityTopicFooterButtons .communityTopicMiniAction { display: inline-flex; align-items: center; }
.communityTopicPostFooter .reactionSummaryList { margin-right: auto; }
.communityTopicPostTextStatistics {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    color: var(--communityTopicMuted);
    font-size: .77rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}
.communityTopicPostTextStatistics fa-icon { opacity: .7; }
.communityTopicFooterButtons:empty { display: none; }
/* Keep text totals on the left and mini actions on the right across WSC styles. */
.communityTopicPostFooter {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start !important;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}
.communityTopicPostFooter > .communityTopicPostTextStatistics {
    order: 0;
    margin: 0 auto 0 0 !important;
    flex: 0 1 auto;
}
.communityTopicPostFooter > .reactionSummaryList {
    order: 1;
    margin-right: 0 !important;
}
.communityTopicPostFooter > .communityTopicFooterButtons {
    order: 2;
    margin-left: auto !important;
    flex: 0 0 auto;
}

.communityTopicPostsPagination {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}
.communityTopicPosts > woltlab-core-pagination { margin-top: 12px; }
.communityStickyReplyButton { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0 0 16px; }
.communityStickyReplyButton[hidden] { display: none !important; }
@media (max-width: 700px) {
    .communityTopicHero { padding: 20px; }
    .communityTopicOpeningMessage { margin-top: 16px; }
    .communityTopicOpeningMessage .communityTopicPostFooter { margin: 0 -20px -20px; padding: 9px 14px; }
    .communityTopicMessage .messageHeader { padding: 9px 12px; }
    .communityTopicMessage .messageBody { padding: 10px 13px 15px; }
    .communityTopicMessage .messageFooter { padding: 8px 10px; }
}


/* Version 1.0 — separated topic header, normal opening post and stable sticky sidebar */
#main.communityTopicActive .communityTopicView {
    margin-top: 0;
}
#main.communityTopicActive .sidebar.boxesSidebarRight .box:first-child {
    margin-top: 0;
}
.communityTopicHero {
    display: block;
    min-height: 0;
    padding: 0;
    margin-top: 0;
}
.communityTopicHeroHeader {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: stretch;
    gap: 24px;
    min-height: 172px;
    padding: 26px 30px;
    background: var(--communityTopicSurface);
    overflow: hidden;
}
.communityTopicHeroHeader .communityTopicHeroImage {
    inset: 0 0 0 auto;
    width: min(56%, 650px);
    opacity: .20;
}
.communityTopicHeroHeader .communityTopicHeroContent {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.communityTopicHeroHeader .communityTopicHeroActions {
    position: relative;
    z-index: 1;
    align-self: stretch;
}
.communityTopicOpeningMessage {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--communityTopicBorder);
    border-radius: 0;
    background: var(--wcfContentBackground, #202523);
}
.communityTopicOpeningHeading {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 9px 20px 0;
    background: var(--wcfContentBackground, #202523);
}
.communityTopicOpeningMessage .messageBody {
    margin: 0;
    min-height: 0;
    padding: 15px 24px 22px;
    background: var(--wcfContentBackground, #202523);
}
.communityTopicOpeningMessage .messageBody .messageText {
    overflow-wrap: anywhere;
}
.communityTopicOpeningMessage .communityTopicPostFooter {
    margin: 0;
    padding: 9px 13px;
    border-top: 1px solid var(--communityTopicBorder);
    border-radius: 0 0 9px 9px;
    background: var(--communityTopicSurface);
}
.communityTopicOpeningMessage:hover .communityTopicPostSignature {
    opacity: 1;
}
.communityTopicPostSignature {
    overflow-wrap: anywhere;
}
.communityTopicMessageList {
    display: grid;
    gap: 4px;
}
.communityTopicMessageList > li,
.communityTopicMessageList > li + li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
.communityTopicMessageList .communityTopicMessage {
    margin: 0;
}
#main.communityTopicActive .sidebar.boxesSidebarLeft,
#main.communityTopicActive .sidebar.boxesSidebarRight {
    overflow-anchor: none;
}
#main.communityTopicActive .sidebar .boxContainer {
    overflow-anchor: none;
}
.communityStickyReplyButton {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease;
}
.communityStickyReplyButton.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
@media (max-width: 700px) {
    .communityTopicHeroHeader {
        flex-wrap: wrap;
        gap: 15px;
        padding: 20px;
    }
    .communityTopicHeroHeader .communityTopicHeroImage { width: 85%; opacity: .14; }
    .communityTopicHeroHeader .communityTopicHeroActions {
        flex-direction: row;
        width: 100%;
        align-items: center;
        flex-wrap: wrap;
    }
    .communityTopicOpeningHeading { padding: 9px 13px 0; }
    .communityTopicOpeningMessage .messageBody { padding: 12px 13px 17px; }
    .communityTopicOpeningMessage .communityTopicPostFooter { margin: 0; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .communityStickyReplyButton { transition: none; }
}


/* Version 1.0 — replies, native message borders and navigation-aware sidebar */
#main.communityTopicActive .sidebar .communityStickyReplyButton {
    display: none;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
#main.communityTopicActive .sidebar .communityStickyReplyButton.is-visible {
    display: flex;
    margin: 0 0 16px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.communityTopicOpeningMessage {
    border-top: 0;
}
.communityTopicPosts .messageList.communityTopicMessageList {
    border-top: 0 !important;
    border-bottom: 0;
    gap: 8px;
}
.communityTopicPosts .messageList.communityTopicMessageList > li,
.communityTopicPosts .messageList.communityTopicMessageList > li + li {
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.communityTopicPosts .messageList.communityTopicMessageList > li:first-child {
    border-top: 0 !important;
}
@media (prefers-reduced-motion: reduce) {
    #main.communityTopicActive .sidebar .communityStickyReplyButton {
        transition: none;
    }
}


/* Version 1.0 — topic info sidebar */
#main.communityTopicActive .communityTopicInfoBox .boxContent {
    padding-top: 0;
}
.communityTopicInfoActions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 0;
}
#main.communityTopicActive .communityTopicInfoActions .communityStickyReplyButton.is-visible {
    margin-bottom: 0;
}
.communityTopicInfoProduct {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
.communityTopicInfoProductButton {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}
.communityTopicInfoProductButton fa-icon {
    flex: 0 0 auto;
}
.communityTopicInfoVersion {
    margin: 0 0 0 4px;
    color: color-mix(in srgb, currentColor 66%, transparent);
    font-size: .82rem;
    line-height: 1.4;
}
.communityTopicInfoVersion strong {
    color: inherit;
    font-weight: 600;
}
.communityTopicInfoSection {
    min-width: 0;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid color-mix(in srgb, currentColor 11%, transparent);
}
.communityTopicInfoHeading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    font-size: .91rem;
    line-height: 1.4;
    font-weight: 700;
}
.communityTopicInfoHeading fa-icon {
    color: var(--wcfContentLink);
    flex: 0 0 auto;
}
.communityTopicInfoTagList { margin: 0; }
.communityTopicInfoEmpty {
    margin: 0;
    font-size: .82rem;
    color: color-mix(in srgb, currentColor 62%, transparent);
}
.communityTopicInfoParticipants {
    margin: 0;
    font-size: .88rem;
    line-height: 1.55;
}
.communityTopicInfoTextTotals {
    margin: 8px 0 0;
    color: var(--communityTopicMuted);
    font-size: .84rem;
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.communityTopicInfoTextTotals strong {
    color: inherit;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

/* Concise topic-level averages and word-author rank in the infobox. */
.communityTopicInfoAverages {
    margin: 7px 0 0;
    font-size: .82rem;
    line-height: 1.55;
    color: var(--communityTopicMuted);
}
.communityTopicInfoAverages strong,
.communityTopicInfoTopWordDescription strong {
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.communityTopicTopWordAuthor { margin-top: 14px; }
.communityTopicTopWordAuthor .communityTopicInfoSubheading {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
}
.communityTopicTopWordAuthor .communityTopicInfoSubheading fa-icon {
    color: var(--wcfContentLink);
}
.communityTopicInfoTopWordDescription {
    margin: 0;
    font-size: .82rem;
    color: var(--communityTopicMuted);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.communityTopicInfoLastReply {
    margin-top: 15px;
}
.communityTopicInfoSubheading {
    font-size: .82rem;
    font-weight: 600;
    margin: 0 0 7px;
    color: color-mix(in srgb, currentColor 70%, transparent);
}
.communityTopicInfoLastReplyAuthor {
    font-size: .91rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}
.communityTopicInfoLastReplyLink {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    font-size: .82rem;
    line-height: 1.4;
}
.communityTopicInfoLastReplyLink fa-icon { flex: 0 0 auto; }


/* Version 1.0 — unified topic post spacing */
.communityTopicView {
    --communityTopicCardSpacing: 16px;
}
.communityTopicView > .communityTopicHero {
    margin-bottom: var(--communityTopicCardSpacing);
}
.communityTopicView .communityTopicPosts > .messageList.communityTopicMessageList {
    margin-top: 0;
    margin-bottom: 0;
    gap: var(--communityTopicCardSpacing);
}
