/* v2.2.9: text-first community, preserving administrator/profile styles. */
body.community-page{color:#21354c;background:#f5f7fb;font-size:13px}
.community-page header,.community-page footer{max-width:1280px}
.community-page header{padding:22px 0;background:transparent;gap:18px;flex-wrap:wrap}
.community-page header .brand{font-size:26px;line-height:1.25}
.community-page header .brand small{font-size:11px;letter-spacing:0;color:#7c8ba0;margin-top:7px}
.community-page header>div{gap:9px;flex-wrap:wrap;justify-content:flex-end}
.community-page header form{max-width:350px}
.community-page header input{width:100%}
.community-page nav{background:white;color:#20354d;box-shadow:none;border-top:1px solid #e3e8f0;border-bottom:1px solid #e3e8f0;padding:0 max(18px,calc((100% - 1280px)/2));gap:0}
.community-page nav a{padding:17px 16px;font-weight:700}
.community-page nav a.active{color:#245dfe;background:transparent}
.community-page nav a.active:after{display:none}
.community-page nav a:hover{background:#f6f8fd;color:#245dfe}
.community-page .layout{max-width:1280px;display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:24px;padding-top:28px}
.community-page .layout main{min-width:0}
.community-page .home-section{padding:24px 22px;border:1px solid #dfe5ef;border-radius:7px;box-shadow:none;margin-bottom:18px}
.community-page .section-title{margin-bottom:14px;gap:12px}
.community-page h1{font-size:23px;font-weight:700;margin-bottom:18px}
.community-page .section-title h1,.community-page .section-title h2{margin:0}
.community-page .section-title h2{font-size:19px}
.community-page .section-title>a{font-size:12px;font-weight:500;color:#31587c}
.community-page .primary{padding:9px 13px;font-size:13px;background:#245dfe;border-color:#245dfe;border-radius:5px}
.community-page .muted{font-size:13px;color:#7a899f;line-height:1.7}
.community-page .topic-find{display:flex;gap:8px;margin:18px 0 14px}
.community-page .topic-find input{min-width:0;flex:1;padding:12px;border:1px solid #dfe5ef;border-radius:4px;font-size:13px}
.community-page .topic-find button{font-size:12px;color:#375476;border-color:#dfe5ef;white-space:nowrap}
.community-page .topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.community-page .topic-grid>a{display:flex;align-items:center;min-height:40px;padding:10px 11px;color:#18375f;background:#fcfdff;border:1px solid #dfe5ef;border-radius:4px;line-height:1.4;overflow-wrap:anywhere;font-weight:400}
.community-page .topic-grid>a:hover{background:#f0f5ff;border-color:#b9caed;color:#245dfe}
.community-page .topic-grid [hidden],.topic-filter-empty[hidden]{display:none!important}
.community-page a:focus-visible,.community-page button:focus-visible,.community-page input:focus-visible{outline:2px solid #245dfe;outline-offset:3px}
.community-page .topic-filter-empty{padding:15px;color:#7a899f}
.community-page .topic-manage-link{display:flex;gap:16px;flex-wrap:wrap;margin-top:16px;color:#245dfe;font-size:12px}
.community-page .topic-pagination{display:flex;justify-content:center;align-items:center;gap:22px;margin-top:24px;color:#6c7f95}
.community-page .topic-pagination a{border:1px solid #dfe5ef;border-radius:4px;padding:8px 15px;color:#245dfe}
.community-page .post-table-scroll{width:100%;overflow:auto;background:white}
.community-page .community-post-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}
.community-page .community-post-table th,.community-page .community-post-table td{border-bottom:1px solid #e7ecf3;padding:12px 8px;text-align:center;font-weight:400;vertical-align:middle}
.community-page .community-post-table th{background:#fafbfe;border-top:1px solid #e0e6ef;color:#7a899f;font-size:12px;white-space:nowrap}
.community-page .community-post-table th:first-child,.community-page .community-post-table td:first-child{text-align:left;width:auto}
.community-page .community-post-table th:nth-child(2){width:96px}
.community-page .community-post-table th:nth-child(3){width:108px}
.community-page .community-post-table th:nth-child(4),.community-page .community-post-table th:nth-child(5){width:48px}
.community-page .community-post-table td:not(:first-child){color:#7a899f;font-size:12px;overflow-wrap:anywhere}
.community-page .community-post-table td.empty{padding:35px}
.community-page .community-post-table tr:hover td{background:#fafcff}
.community-page .table-post-title{display:flex;align-items:center;gap:8px;color:#243950;min-width:0;line-height:1.6}
.community-page .table-post-title>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.community-page .table-topic{font-size:11px;color:#94a1b2;margin-right:8px}
.community-page .table-thumb{width:42px;height:32px;object-fit:cover;border:1px solid #e1e6ef;border-radius:3px;flex-shrink:0}
.community-page .board-head,.community-page .board-notice,.community-page .region-filter{box-shadow:none;border-radius:6px}
.community-page .editor{background:white;padding:22px;border:1px solid #dfe5ef;border-radius:6px;max-width:none}
.community-page .editor input,.community-page .editor textarea{width:100%;border-color:#dfe5ef;line-height:1.6}
.community-page .editor input[type=checkbox]{width:auto}
.community-page .editor textarea{min-height:260px}
.community-page .post-heading,.community-page .body,.community-page .post-images{padding:16px;background:white}
.community-page .layout aside{display:block;min-width:0}
.community-page aside h2{font-size:12px;font-weight:400;color:#7a899f;text-align:left;margin-bottom:14px}
.community-page .ad{height:255px;border:1px solid #dde4ef;border-radius:0;background:#edf2fb;color:#8b9bb4;gap:22px;box-shadow:none;margin-bottom:20px}
.community-page .ad strong{font-size:16px;color:#91a1ba;font-weight:400}
.community-page .ad span,.community-page .ad small{font-size:11px;color:#8c9bb2}
.community-page .mabeone-create-box,.community-page .mabeone-quick-box{background:white;border:1px solid #dfe5ef;border-radius:6px}
.community-page .mabeone-order-manager article{background:white}
.community-page .mabeone-order-manager article[draggable]{cursor:grab}
.community-page .mabeone-order-manager article.dragging{opacity:.45}
.community-page #save-topic-order:not(:disabled){background:#245dfe;border-color:#245dfe;color:white}
.community-page footer{font-size:12px;padding:24px 0}
.community-page footer p{color:#8998aa}
@media(max-width:1340px){.community-page header,.community-page footer{margin:0 22px}.community-page .layout{margin:0 22px}}
@media(max-width:1050px){.community-page .layout{grid-template-columns:minmax(0,1fr) 160px;gap:16px}.community-page .topic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.community-page header form{order:3;max-width:none;flex-basis:100%}.community-page .community-post-table th:nth-child(3){width:90px}}
@media(max-width:760px){.community-page .layout{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:10px;margin:0 12px;padding-top:18px}.community-page .home-section{padding:16px 12px}.community-page header,.community-page footer{margin:0 12px}.community-page .topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.community-page .topic-grid>a{font-size:12px;padding:9px 8px}.community-page .community-post-table th:nth-child(3),.community-page .community-post-table td:nth-child(3){display:none}.community-page .community-post-table th:nth-child(2){width:68px}.community-page .community-post-table th:nth-child(4),.community-page .community-post-table th:nth-child(5){width:36px}.community-page .community-post-table td,.community-page .community-post-table th{padding:10px 4px}.community-page .table-topic{display:block}.community-page .ad{height:220px;padding:6px}.community-page .ad strong{font-size:12px}.community-page .topic-find{flex-wrap:wrap}.community-page .topic-find input{flex-basis:100%}.community-page .topic-find button{margin-left:auto}.community-page header>div{justify-content:flex-start}.community-page .section-title{flex-wrap:wrap}.community-page h1{font-size:20px}}
@media(max-width:430px){.community-page .layout{grid-template-columns:minmax(0,1fr) 76px;gap:8px;margin:0 8px}.community-page .topic-grid{grid-template-columns:1fr}.community-page .home-section{padding:14px 10px}.community-page .community-post-table th:nth-child(2),.community-page .community-post-table td:nth-child(2){display:none}.community-page .ad strong{font-size:11px}}

/* v2.2.10: visible topic deletion, restore and drag controls */
.community-page .topic-order-toolbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f4f8ff;border:1px solid #cad9ed;border-radius:6px;padding:12px;margin:16px 0}
.community-page .topic-order-toolbar p{margin:0;color:#244369;font-size:13px}
.community-page .topic-order-toolbar button{white-space:nowrap;background:#245dce;color:white;font-weight:800}
.community-page .topic-order-toolbar button:disabled{opacity:.45;cursor:not-allowed}
.community-page .mabeone-order-list article{grid-template-columns:52px minmax(0,1fr) auto}
.community-page .topic-drag-grip{display:grid;justify-items:center;gap:5px;cursor:grab;user-select:none;font-size:12px;color:#596d85}
.community-page .order-buttons .topic-delete{background:#fff2f2;border-color:#edb0b0;color:#b42323!important;font-weight:800}
.community-page .topic-archive{margin-top:20px;border-top:1px solid #dde5ef;padding-top:16px}
.community-page .topic-archive summary{cursor:pointer;font-weight:800;color:#244369}
.community-page .topic-archive-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf0f6}
@media(max-width:850px){.community-page .mabeone-order-list article{grid-template-columns:52px minmax(0,1fr)}.community-page .mabeone-order-list .order-buttons{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:560px){.community-page .topic-order-toolbar{flex-direction:column;align-items:stretch}.community-page .topic-order-toolbar button{width:100%}.community-page .topic-archive-row{font-size:13px}}

/* Home shows up to seven rows; full theme pages remain uncapped. */
.community-page .home-topic-grid>a:nth-child(n+29 of :not([hidden])){display:none}
@media(max-width:1050px){.community-page .home-topic-grid>a:nth-child(n+22 of :not([hidden])){display:none}}
@media(max-width:760px){.community-page .home-topic-grid>a:nth-child(n+15 of :not([hidden])){display:none}}
@media(max-width:430px){.community-page .home-topic-grid>a:nth-child(n+8 of :not([hidden])){display:none}}
.community-page .section-title h1 .brand-orange{color:#f47a15!important}

.community-page header .brand small .brand-tagline{color:#f47a15!important}
