/* Community reference theme. Shared components keep their existing behavior. */
:root {
    --bg-primary: #080f15;
    --bg-header: #0e1720;
    --bg-card: #0e1821;
    --bg-input: #0c151e;
    --border-color: #263440;
    --border-soft: #2a3742;
    --accent: #efc267;
    --accent-strong: #f5c454;
    --link: #efc267;
    --header-height: 62px;
}
body { background: radial-gradient(ellipse at 65% 30%, #0c151d 0, #080f15 75%); font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; }
.topbar { padding: 0 max(24px, calc((100vw - 1380px) / 2)); background: #0e1720; }
.brand { flex: 0 0 256px; width: 256px; gap: 22px; }
.brand-monogram { color: var(--accent); font: 52px/1 Georgia, serif; }
.brand-wordmark { font: 15px/1.4 Georgia, serif; letter-spacing: 4px; }
.brand-wordmark small { display: block; font: 10px/1.8 'Segoe UI', sans-serif; letter-spacing: 5px; }
.topnav { position: static; transform: none; width: auto; flex: 1; justify-content: flex-start; gap: 20px; padding: 0; }
.topnav .nav-label { width: auto; padding: 0 24px; font-size: 14px; }
.topnav .nav-label.active { color: var(--accent); }
.nav-icon.active::after { width: 100%; bottom: 6px; height: 2px; }
.topnav .action-wrap { margin-left: auto; }
.top-actions { margin-left: 24px; padding-left: 18px; border-left: 1px solid #1b2731; }
.avatar-top { width: 44px; height: 44px; }
.profile-button > .icon { display: none; }
.community-shell { max-width: 1428px; margin: auto; padding: 20px 24px 28px; }
.community-shell .content-grid { grid-template-columns: 264px minmax(0, 1fr) 340px; gap: 30px; }
.community-shell .card, .community-shell .post-card { background: linear-gradient(120deg, #0f1922, #0d161f); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: none; }
.community-navigation { min-height: calc(100vh - 108px); padding: 14px 13px 30px; display: flex; flex-direction: column; position: sticky; top: 82px; }
.community-nav-item { width: 100%; display: flex; align-items: center; gap: 20px; padding: 13px 12px; border-radius: 6px; background: transparent; text-align: left; font-size: 15px; color: #e4e8ee; }
.community-nav-item:hover { background: #18232d; }
.community-nav-item.active { background: #242624; color: var(--accent); position: relative; }
.community-nav-item.active::before { content: ''; position: absolute; left: -13px; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.topic-navigation { margin: 20px 9px 0; padding-top: 22px; border-top: 1px solid var(--border-color); }
.topic-navigation h2 { font-size: 16px; margin-bottom: 12px; }
.topic-navigation .community-nav-item { padding-left: 0; }
.community-motto { color: #b7c1cd; font-size: 14px; line-height: 1.6; margin: auto 9px 12px; padding-top: 60px; }
.community-motto::before { content: ''; display: block; width: 31px; height: 2px; background: var(--accent); margin-bottom: 13px; }
.community-heading { margin: -5px 0 12px; }
.community-heading h1 { font-size: 30px; font-weight: 650; letter-spacing: -.5px; }
.community-heading p { font-size: 18px; color: #cbd2dc; }
.community-shell .create-post { min-height: 128px; padding: 14px 18px 10px; margin-bottom: 13px; }
.community-shell .composer-row { align-items: center; gap: 14px; }
.community-shell .avatar-lg { width: 44px; height: 44px; }
.community-shell .composer-row textarea { height: 40px; min-height: 40px; padding: 9px 15px; border: 1px solid #2b3946; border-radius: 8px; background: #0d1720; font-size: 14px; }
.community-shell .composer-row textarea:focus { height: 88px; border-color: var(--accent); }
.community-shell .composer-divider { margin: 12px 0 8px; }
.community-shell .composer-tools { gap: 35px; }
.community-shell .tool-button { font-size: 13px; padding: 0 5px; }
.gold-button, .post-submit { background: linear-gradient(110deg, #f1c66e, #e9bc65); color: #17130c; font-weight: 600; }
.community-shell .post-submit { height: 34px; min-height: 34px; width: 98px; }
.selected-file:empty, .poll-preview:empty { display: none; }
.community-shell .feed-panel.card { border: 0; background: none; }
.community-shell .feed-toolbar { min-height: 34px; border: 0; padding: 0; background: transparent; margin-bottom: 12px; }
.community-shell .post-tabs { height: 32px; width: auto; gap: 10px; align-items: center; }
.community-shell .tab-button { border-radius: 20px; padding: 5px 24px; background: #14202a; font-size: 13px; }
.community-shell .tab-button.active { color: #16120c; background: linear-gradient(110deg, #f1c66e, #e9bc65); box-shadow: 0 0 0 2px #283744; font-weight: 600; }
.community-shell .tab-button.active::after { display: none; }
.community-shell .feed-controls select { width: 112px; border-radius: 9px; font-size: 13px; }
.community-shell .post-card, .community-shell .post-card:first-child, .community-shell .post-card:not(:first-child) { min-height: 0; padding: 14px 19px 8px; border: 1px solid var(--border-color); border-radius: 10px; margin-top: 0; }
.community-shell .post-list { gap: 10px; }
.community-shell .post-author { gap: 18px; max-width: calc(100% - 100px); padding-right: 0; }
.community-shell .post-author h2 { font-size: 14px; font-weight: 600; }
.community-shell .post-author p { font-size: 12px; }
.community-shell .category-badge, .community-shell .post-card:not(:first-child) .category-badge { position: absolute; right: 74px; top: 23px; margin: 0; border-radius: 18px; border: 1px solid #405b77; background: #172330; color: #b3c8e2; font-size: 12px; padding: 3px 12px; }
.community-shell .post-menu-wrap { top: 19px; right: 20px; }
.community-shell .more-button .icon { transform: rotate(90deg); }
.community-shell .post-title { font-size: 20px; line-height: 1.35; margin-top: 9px; font-weight: 600; }
.community-shell .post-copy, .community-shell .post-card:not(:first-child) .post-copy { margin-top: 3px; font-size: 15px; line-height: 1.5; max-width: none; }
.community-shell .attachment-box { min-height: 52px; max-width: 82%; padding: 8px 12px; margin-top: 9px; background: #15202b; }
.community-shell .pdf-icon { width: 30px; height: 34px; background: #c7403e; color: white; }
.community-shell .post-actions { border-top: 1px solid var(--border-color); margin-top: 8px; padding-top: 7px; gap: 34px; }
.community-shell .reaction-button.active { color: var(--accent); }
.community-shell .right-sidebar { gap: 16px; }
.community-shell .sidebar-search { height: 75px; padding: 17px; position: relative; }
.community-shell .sidebar-search .icon { position: absolute; left: 29px; width: 22px; pointer-events: none; }
.community-shell .sidebar-search input { width: 100%; min-width: 0; border: 1px solid #33414e; border-radius: 8px; padding: 0 12px 0 45px; font-size: 13px; }
.community-shell .sidebar-card { padding: 18px 20px; }
.community-shell .sidebar-card h2 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.community-shell .recent-item { grid-template-columns: minmax(0, 1fr) 46px; padding: 12px 0; border-bottom: 1px solid #303d48; min-height: 76px; }
.community-shell .recent-avatar-button { display: none; }
.community-shell .recent-item strong { font-size: 14px; font-weight: 400; }
.community-shell .sidebar-link { color: var(--accent); margin-top: 15px; font-weight: 600; }
.community-shell .sidebar-link::after { content: '→'; margin-left: 12px; font-size: 20px; line-height: 1; }
.community-guidelines { padding: 20px; }
.community-guidelines summary { display: flex; align-items: center; gap: 18px; cursor: pointer; list-style: none; font-weight: 500; font-size: 13px; }
.community-guidelines summary::-webkit-details-marker { display: none; }
.community-guidelines small { display: block; font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-top: 5px; font-weight: 400; }
.guideline-arrow { margin-left: auto; font-size: 24px; }
.community-guidelines > p { color: var(--text-secondary); padding-top: 16px; font-size: 13px; line-height: 1.6; }
.community-signoff { text-align: center; font-size: 9px; letter-spacing: 2.6px; color: #8997a6; padding-top: 110px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1250px) {
    .community-shell .content-grid { grid-template-columns: 210px minmax(0, 1fr) 285px; gap: 20px; }
    .brand { flex-basis: 230px; }
    .community-shell .composer-tools { gap: 14px; }
}
@media (max-width: 1050px) {
    .community-shell .content-grid { grid-template-columns: 200px minmax(0, 1fr); }
    .community-shell .right-sidebar { grid-column: 2; display: flex; }
    .community-navigation { grid-row: span 2; }
    .community-signoff { padding-top: 20px; }
    .topnav { display: flex; background: transparent; border: 0; box-shadow: none; }
    .mobile-menu-toggle { display: none; }
}
@media (max-width: 720px) {
    .topbar { padding: 0 16px; }
    .brand { flex-basis: auto; width: auto; gap: 10px; margin-right: auto; }
    .brand-monogram { font-size: 42px; }
    .brand-wordmark { font-size: 11px; letter-spacing: 2px; }
    .brand-wordmark small { font-size: 8px; letter-spacing: 3px; }
    .mobile-menu-toggle { display: flex; margin-left: auto; }
    .top-actions { margin-left: 10px; padding-left: 10px; }
    .topnav { display: none; position: absolute; top: 62px; left: 0; width: 100%; height: 58px; padding: 0 16px; background: #0e1720; border-bottom: 1px solid var(--border-color); }
    .topnav.open { display: flex; }
    .topnav .nav-label { padding: 0 10px; }
    .topnav .nav-icon { height: 56px; }
    .community-shell { padding: 16px 12px 24px; }
    .community-shell .content-grid { display: flex; flex-direction: column; gap: 18px; }
    .community-navigation { position: static; min-height: 0; width: 100%; padding: 8px; }
    .feed-navigation { display: flex; gap: 3px; }
    .community-nav-item { justify-content: center; gap: 6px; font-size: 12px; padding: 10px 5px; }
    .community-nav-item .icon { width: 18px; height: 18px; }
    .community-nav-item.active::before { display: none; }
    .topic-navigation, .community-motto { display: none; }
    .community-shell .feed-column, .community-shell .right-sidebar { width: 100%; }
    .community-heading h1 { font-size: 27px; }
    .community-heading p { font-size: 16px; }
    .community-shell .create-post { padding: 12px; }
    .community-shell .composer-tools { gap: 4px; }
    .community-shell .tool-button { gap: 5px; font-size: 12px; }
    .community-shell .tool-button .icon { width: 19px; }
    .community-shell .post-submit { width: 65px; }
    .community-shell .post-card { padding: 14px 12px 8px; }
    .community-shell .post-author { max-width: calc(100% - 28px); }
    .community-shell .category-badge, .community-shell .post-card:not(:first-child) .category-badge { position: static; margin-top: 10px; }
    .community-shell .attachment-box { max-width: 100%; }
    .community-shell .post-title { font-size: 18px; }
}
