:root{font-family:Inter,Arial,sans-serif;background:#f5f8f5;color:#174435}*{box-sizing:border-box}body{margin:0}.community-top{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#174e3c;padding:15px max(24px,calc((100vw - 1160px)/2));color:white}.community-top a{color:white;text-decoration:none;font-weight:800}.community-top nav{display:flex;gap:17px}.community-top nav a{font-weight:500;font-size:14px}.community-shell{max-width:1160px;padding:22px 18px;margin:0 auto}.community-hero{background:#174e3c;color:white;border-radius:18px;padding:29px}.community-hero small{color:#e3bc68;font-weight:700;letter-spacing:.03em}.community-hero h1{font-size:clamp(29px,4vw,45px);margin:16px 0 6px}.community-hero p{margin-bottom:25px}.community-actions{display:flex;gap:12px;flex-wrap:wrap}.community-actions input{flex:1;min-width:170px;max-width:570px}.community-notice{color:#557564;font-size:14px;min-height:18px;margin:16px 2px}.community-notice.error{color:#a22}.community-tabs{display:flex;gap:9px;overflow:auto;padding:6px 0 20px}.community-tabs button{white-space:nowrap;border-radius:30px;background:#e9f2eb;color:#174e3c}.community-tabs button.active{background:#174e3c;color:white}.community-layout{display:grid;grid-template-columns:minmax(0,700px) minmax(245px,1fr);gap:22px;align-items:start}.community-card,.community-post{background:white;border:1px solid #d2e3d6;border-radius:17px;padding:19px;margin-bottom:18px;box-shadow:0 3px 15px #174e3c09}.community-post{padding:0;overflow:hidden}.community-post-head{padding:17px 19px;display:flex;gap:12px;align-items:center}.community-avatar{width:44px;height:44px;border-radius:50%;background:#e6f1e9;color:#174e3c;display:grid;place-items:center;font-weight:800;flex-shrink:0}.community-user{flex:1}.community-user strong{display:block}.community-muted{color:#627b6b;font-size:12px}.community-post-body{padding:0 19px 13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.community-post-body h3{margin:0 0 8px}.community-image{display:block;max-height:520px;width:100%;object-fit:contain;background:#ecf3ed}.community-post-actions{display:flex;align-items:center;gap:9px;padding:12px 16px;flex-wrap:wrap}.community-post-actions button,.community-tool{border:none;background:transparent;color:#174e3c;padding:7px 10px;cursor:pointer;font-weight:700}.community-post-actions button[aria-pressed=true]{color:#bc8353}.community-comments{border-top:1px solid #e6eee8;padding:12px 19px}.community-comment{background:#f1f7f2;padding:11px;border-radius:11px;margin:9px 0;overflow-wrap:anywhere}.community-comment textarea{margin:8px 0}.community-comment small{display:block;color:#617869}.community-comment button{font-size:12px}.community-comment-form{display:flex;gap:9px;align-items:start;margin-top:12px}.community-comment-form input{margin:0;flex:1}button,.community-light{border-radius:9px;padding:11px 15px;border:1px solid #174e3c;background:#174e3c;color:white;font-weight:700;cursor:pointer;font:inherit}button.community-light{background:#eaf4eb;color:#174e3c;border-color:#cadfce}button:disabled{opacity:.5;cursor:not-allowed}input,textarea,select{font:inherit;border:1px solid #b8d1be;border-radius:9px;padding:11px;width:100%;max-width:100%;color:#193e2c}label{font-weight:700;display:block;margin:10px 0}label input,label select,label textarea{display:block;margin-top:7px}.community-dialog{width:min(94vw,560px);border:1px solid #cfe2d4;border-radius:18px;padding:24px;color:#174435;box-shadow:0 24px 85px #0004}.community-dialog::backdrop{background:#0c3128a8}.community-dialog-head{display:flex;align-items:center;justify-content:space-between}.community-dialog-head h2{margin:0}.community-hint{font-size:12px;color:#607568}.community-dialog img{width:100%;max-height:270px;object-fit:contain;border-radius:11px;margin-top:5px}.community-side h2{margin-top:0}.community-side p{line-height:1.6;color:#5a7162}@media(max-width:810px){.community-layout{grid-template-columns:1fr}.community-side{display:none}.community-top{padding:16px 18px}.community-hero{padding:23px}.community-shell{padding:16px 12px}.community-post-head{padding:15px}}

/* V45.83: image-first card, accessible two-line previews, and subtle owner state. */
.community-image{display:block;width:100%;height:auto;max-height:530px;object-fit:contain;background:#eef3ee}
.community-caption{padding:14px 19px 4px;line-height:1.55;overflow-wrap:anywhere}
.community-caption h3{font-size:16px;line-height:1.35;margin:0 0 6px;color:#174e3c}
.community-caption-text{white-space:pre-line;overflow-wrap:anywhere}
.community-caption-clamped:not(.community-caption-expanded){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2;overflow:hidden}
.community-read-more{appearance:none;border:0;border-radius:0;padding:4px 0;margin:4px 0 2px;background:transparent;color:#174e3c;font-size:13px;font-weight:800;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.community-read-more:focus-visible{outline:2px solid #c49e52;outline-offset:3px}
.community-state{display:inline-flex;margin-top:4px;border-radius:999px;padding:2px 8px;background:#f4ecd7;color:#73531d;font-size:11px;font-weight:700;width:fit-content}

/* V45.84 Following and profile controls, matching existing BTD UI. */
.community-follow-button{background:#e3bc68;color:#174e3c;border:1px solid #e3bc68;border-radius:999px;font-weight:800;padding:7px 13px;white-space:nowrap;font-size:12px}
.community-follow-button:focus-visible{outline:2px solid #174e3c;outline-offset:3px}
.community-profile-content{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px;text-align:center}
.community-profile-content .community-avatar{height:64px;width:64px;font-size:24px}
.community-profile-content h2{margin:0;color:#174e3c}.community-profile-content p{margin:0}
@media(max-width:560px){.community-post-head{gap:7px;padding:12px}.community-follow-button{padding:6px 8px;font-size:11px}}
