/*
Theme Name: 74Service Community
Theme URI: https://74service.in/
Author: 74Service
Description: Original community theme for 74Service.
Version: 7.0.0
Requires at least: 6.0
Requires PHP: 7.4
*/
:root{--bg:#f5f6f7;--card:#fff;--surface:#f0f2f3;--text:#17212b;--muted:#69747d;--line:#dfe4e7;--brand:#2f7658;--brand-dark:#245c45;--brand-soft:#e4f2eb;--danger:#c53b3b;--shadow:0 1px 2px rgba(20,35,28,.06),0 4px 18px rgba(20,35,28,.04);--radius:14px;--header:64px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.55}body.admin-bar{--adminbar:32px}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input,textarea,select{font:inherit}.site-top{height:var(--header);background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px;padding:0 max(18px,calc((100vw - 1360px)/2));position:sticky;top:0;z-index:100;backdrop-filter:blur(8px)}body.admin-bar .site-top{top:32px}.brand{display:flex;align-items:center;font-size:22px;font-weight:850;letter-spacing:-.5px;color:var(--brand);white-space:nowrap}.search{width:min(620px,48vw);position:relative}.search input{display:block;width:100%;height:42px;background:#f0f2f3;border:1px solid transparent;border-radius:22px;padding:0 17px;outline:0;color:var(--text);transition:.2s}.search input:focus{background:#fff;border-color:#b9ccc1;box-shadow:0 0 0 3px var(--brand-soft)}.top-actions{margin-left:auto;display:flex;gap:8px;align-items:center}.top-actions .avatar{flex:0 0 auto}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border:1px solid var(--line);background:#fff;color:var(--text);padding:8px 16px;border-radius:22px;font-weight:750;cursor:pointer;transition:.18s ease}.btn:hover{border-color:#b8c5be;transform:translateY(-1px)}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover{background:var(--brand-dark);border-color:var(--brand-dark)}.btn.small{min-height:34px;padding:6px 12px;font-size:13px}.avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#dfe7e2;display:inline-flex;align-items:center;justify-content:center;font-weight:800;border:1px solid #d5ddd8}
.layout{width:min(1320px,calc(100% - 32px));margin:20px auto 44px;display:grid;grid-template-columns:220px minmax(0,1fr) 290px;gap:20px;align-items:start}.main{min-width:0}.side,.right{position:sticky;top:84px;height:max-content}.admin-bar .side,.admin-bar .right{top:116px}.nav-card,.widget,.post,.panel,.community-head{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.nav-card{padding:8px}.nav-link{display:flex;align-items:center;gap:9px;padding:10px 12px;border-radius:9px;font-weight:650;color:#26333c}.nav-link:hover,.nav-link.active{background:var(--surface);color:var(--brand)}.nav-title{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);padding:15px 12px 7px}.widget{padding:16px;margin-bottom:14px}.widget h3{margin:0 0 10px;font-size:15px}.feed-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:2px 0 12px}.feed-head h1{font-size:26px;line-height:1.2;margin:0;font-weight:800;letter-spacing:-.4px}.tabs{display:flex;gap:3px;background:#e9edef;border-radius:10px;padding:3px;overflow:auto}.tab{padding:7px 12px;border-radius:8px;font-weight:750;color:var(--muted);white-space:nowrap}.tab.active,.tab:hover{background:#fff;color:var(--brand);box-shadow:0 1px 2px rgba(0,0,0,.05)}
.post{padding:16px;margin-bottom:14px;overflow:hidden}.post:hover{box-shadow:0 3px 20px rgba(20,35,28,.07)}.post-meta{color:var(--muted);font-size:12.5px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}.post-meta a{color:#4c6b5c}.post-meta a:hover{color:var(--brand)}.post h2{font-size:19px;line-height:1.32;margin:7px 0 9px;letter-spacing:-.15px}.post h2 a:hover{color:var(--brand)}.post-body{color:#35404a;overflow-wrap:anywhere}.post-body p:last-child{margin-bottom:0}.post-media{width:100%;max-height:620px;object-fit:cover;display:block;margin:12px 0;border-radius:10px;background:#edf0f1}.actions{display:flex;align-items:center;gap:5px;margin-top:14px;flex-wrap:wrap}.action{border:0;background:#f0f2f3;border-radius:18px;min-height:34px;padding:6px 11px;cursor:pointer;color:#4b5660;font-weight:700;transition:.15s}.action:hover,.action.active{background:var(--brand-soft);color:var(--brand)}.score{font-weight:850;min-width:28px;text-align:center}.community-mini{display:flex;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}.community-mini:last-child{border:0}.community-icon{width:40px;height:40px;border-radius:50%;background:var(--brand-soft);display:flex;align-items:center;justify-content:center;font-weight:850;color:var(--brand);flex:0 0 40px}.community-mini b{font-size:14px}.muted{color:var(--muted)}.empty{text-align:center;padding:55px 20px;color:var(--muted);background:#fff;border:1px dashed var(--line);border-radius:var(--radius)}
.form-panel{width:100%;max-width:760px;margin:0 auto}.panel{padding:24px}.panel h1{margin:0 0 7px;font-size:28px;letter-spacing:-.5px}.field{margin-bottom:17px}.field label{display:block;font-weight:750;margin-bottom:7px}.field input,.field textarea,.field select{width:100%;min-height:44px;border:1px solid #cdd5d1;border-radius:10px;padding:10px 12px;background:#fff;color:var(--text);outline:0}.field textarea{min-height:170px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.notice{padding:12px 14px;border-radius:9px;background:#edf7f1;color:#28563f;margin-bottom:16px}.error{padding:12px 14px;border-radius:9px;background:#fff0f0;color:#a52d2d;margin-bottom:16px}.form-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.profile-cover{height:190px;background:linear-gradient(135deg,#dcece4,#f6faf8);border-radius:12px 12px 0 0}.profile-main{padding:0 24px 24px;position:relative}.profile-avatar{width:96px;height:96px;border:5px solid #fff;margin-top:-48px}.profile-name{font-size:27px;font-weight:850;margin:8px 0 1px;letter-spacing:-.4px}.profile-stats{display:flex;gap:28px;flex-wrap:wrap;margin-top:17px}.stat b{display:block;font-size:18px}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{background:var(--brand-soft);color:var(--brand);padding:5px 10px;border-radius:15px;font-size:12px;font-weight:750}.community-head{padding:22px;margin-bottom:14px}.community-title{display:flex;gap:13px;align-items:center}.community-title .community-icon{width:52px;height:52px;flex-basis:52px;font-size:20px}.community-title h1{margin:0;font-size:27px;line-height:1.2}.comment{padding:13px 0 13px 15px;border-left:2px solid #d9e1dc;margin-top:10px}.comment-meta{font-size:12.5px;color:var(--muted)}.comment-actions{display:flex;gap:5px;margin-top:6px}.mobile-nav{display:none}.hidden{display:none!important}.post-single .post-title{font-size:30px;line-height:1.2;margin:8px 0 14px}.post-single .post-body{font-size:16px}.single-side .widget{margin-bottom:14px}.related-posts{margin-top:14px}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1120px){.layout{grid-template-columns:200px minmax(0,1fr);width:min(100% - 24px,900px)}.right{display:none}.search{width:min(560px,55vw)}}
@media(max-width:780px){:root{--header:58px}.site-top{height:58px;padding:0 10px;gap:8px}.brand{font-size:19px}.search{display:none;width:auto;position:absolute;left:10px;right:10px;top:calc(var(--header) + 7px);z-index:110}.search.open{display:block}.top-actions .hide-mobile{display:none}.layout{display:block;width:calc(100% - 18px);margin:12px auto 24px}.side,.right{display:none}.feed-head{align-items:flex-start}.feed-head h1{font-size:23px}.tabs{max-width:100%;margin-left:auto}.post{padding:13px;margin-bottom:10px;border-radius:11px}.post h2{font-size:18px}.post-single .post-title{font-size:25px}.panel{padding:17px;border-radius:11px}.form-panel{max-width:none}.grid2{grid-template-columns:1fr;gap:0}.community-head{padding:17px}.community-title h1{font-size:23px}.profile-cover{height:135px}.profile-main{padding:0 17px 20px}.profile-name{font-size:24px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;height:62px;background:rgba(255,255,255,.98);border-top:1px solid var(--line);z-index:120;display:flex;justify-content:space-around;align-items:center;box-shadow:0 -3px 15px rgba(0,0,0,.05)}.mobile-nav a{min-width:52px;font-size:10.5px;text-align:center;color:var(--muted)}.mobile-nav a strong{display:block;font-size:18px;line-height:20px;color:var(--text)}body{padding-bottom:66px}body.admin-bar .site-top{top:46px}.admin-bar .mobile-nav{bottom:0}.admin-bar .search{top:calc(var(--header) + 53px)}}
@media(max-width:460px){.top-actions{gap:5px}.btn.primary{padding:7px 12px}.brand{font-size:18px}.feed-head{display:block}.tabs{margin-top:10px;width:max-content;max-width:100%}.post{padding:12px}.actions{gap:4px}.action{padding:6px 9px}.panel h1{font-size:24px}.community-title{align-items:flex-start}.community-title .community-icon{width:44px;height:44px;flex-basis:44px}}

/* v5 layout hardening */
html,body{min-width:0!important;overflow-x:hidden!important}
body{background:var(--bg)!important}
.site-top{width:100%!important;min-height:var(--header)!important}
.layout{display:grid!important;grid-template-columns:232px minmax(0,760px) 300px!important;justify-content:center!important;align-items:start!important;gap:22px!important;width:100%!important;max-width:1360px!important;margin:24px auto 60px!important;padding:0 18px!important}
.layout>.side,.layout>.main,.layout>.right{min-width:0!important;width:auto!important;max-width:none!important}
.main{grid-column:auto!important}
.side,.right{position:sticky!important;top:88px!important}
.admin-bar .side,.admin-bar .right{top:120px!important}
.form-panel{width:100%!important;max-width:none!important;margin:0!important}
.form-panel form{width:100%!important}
.form-panel .field input,.form-panel .field textarea,.form-panel .field select{width:100%!important}
.panel{width:100%!important}
.feed-head{min-height:44px}
.post{width:100%!important}
.post-body{word-break:break-word}
.community-head{width:100%!important}
.right .widget,.side .widget,.nav-card{width:100%!important}
/* Create/settings/login/register pages should never inherit a narrow page column */
body.s74-route-page .layout .main{width:100%!important}
/* Prevent WordPress page content from being rendered underneath custom routes */
.s74-route-page .entry-content,.s74-route-page .site-content{max-width:none}
@media (max-width:1200px){
 .layout{grid-template-columns:210px minmax(0,1fr)!important;max-width:980px!important}
 .right{display:none!important}
}
@media (max-width:820px){
 .layout{display:block!important;width:100%!important;max-width:none!important;padding:0 10px!important;margin:12px auto 28px!important}
 .side,.right{display:none!important}
 .main{width:100%!important}
 .form-panel{max-width:none!important}
 .post,.panel,.widget,.community-head{border-radius:12px!important}
}
@media (min-width:821px){
 .layout>.main{min-height:1px}
}

.comments-panel{margin-top:14px}.comments-panel h2{margin:0 0 18px;font-size:21px}.comment-avatar img{width:32px;height:32px;border-radius:50%;vertical-align:middle}.comment-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.comment-body{margin:7px 0 4px;color:#33404a}.comment-actions{display:flex;gap:12px;font-size:12px;font-weight:700}.comment-actions a{color:var(--muted)}.comment-actions a:hover{color:var(--brand)}.comment .children{margin-left:18px}


/* Public community UI: never reserve space for the WP admin toolbar. */
html body.admin-bar { margin-top: 0 !important; }
html body.admin-bar .site-top { top: 0 !important; }
/* v6 feature layer */
:root{--bg:#f5f7f8;--card:#fff;--text:#182126;--muted:#66747d;--line:#e2e7ea;--brand:#ff5a36;--brand2:#e84b2a;--soft:#fff3ef}
body{background:var(--bg);color:var(--text)}a{color:#1769aa}.site-top{z-index:1000}.post,.panel,.widget,.nav-card,.community-head{border:1px solid var(--line);box-shadow:0 2px 10px rgba(20,30,35,.04)}
.btn.primary{background:var(--brand);border-color:var(--brand)}.btn.primary:hover{background:var(--brand2)}
.question-tag,.tag{display:inline-flex;padding:3px 8px;border-radius:999px;background:var(--soft);color:var(--brand2);font-size:11px;font-weight:700;margin-left:6px}.accepted-label{background:#eaf8ef;color:#17733c;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700}.accepted-answer{border-left:4px solid #36a269}.field-help{font-size:12px;color:var(--muted);margin-top:6px}.blocked-box{padding:22px;border:1px solid #f0b7ad;background:#fff5f3;border-radius:14px;color:#7d2115}.badge{display:inline-block;min-width:18px;padding:1px 5px;border-radius:10px;background:var(--brand);color:#fff;font-size:10px;text-align:center}.notification-row{margin-bottom:10px}.external-card{display:inline-block;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}.comments-head{display:flex;gap:12px;align-items:baseline;justify-content:space-between}.comment-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.search-large{display:flex;gap:10px;margin-bottom:18px}.search-large input{flex:1}.community-mini.large{padding:14px;border-bottom:1px solid var(--line)}
.mobile-bottom{display:none}
@media(max-width:820px){.site-top{padding:10px 12px}.search{order:3;width:100%;margin-top:8px}.site-top{flex-wrap:wrap}.mobile-bottom{position:fixed;display:flex;left:0;right:0;bottom:0;height:62px;background:#fff;border-top:1px solid var(--line);z-index:1200;justify-content:space-around;padding-bottom:env(safe-area-inset-bottom)}.mobile-bottom a{flex:1;text-align:center;text-decoration:none;font-size:20px;padding-top:7px}.mobile-bottom span{display:block;font-size:10px;color:var(--muted)}.create-fab{font-weight:800}.site-footer{padding-bottom:78px}.comments-head{display:block}.search-large{display:block}.search-large .btn{margin-top:8px}}

/* v7 user account, profile media, engagement and YouTube */
.profile-cover{background-size:cover;background-position:center}
.profile-editor-media{display:grid;grid-template-columns:180px 1fr;gap:22px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);margin-bottom:20px}.media-label{display:block;font-weight:800;margin-bottom:8px}.editor-avatar{width:112px;height:112px;border-radius:50%;object-fit:cover;border:4px solid #fff;display:block;margin-bottom:10px;background:#e9efeb}.editor-banner{height:112px;border-radius:12px;background:linear-gradient(135deg,#dcece4,#f6faf8);background-size:cover;background-position:center;margin-bottom:10px;border:1px solid var(--line)}.inline-check{display:block;font-size:12px;margin-top:7px;color:var(--muted)}.youtube-preview{margin-top:8px;padding:8px 10px;border-radius:8px;background:var(--surface);font-size:12px}.s74-video{position:relative;width:100%;aspect-ratio:16/9;margin:12px 0;border-radius:12px;overflow:hidden;background:#111}.s74-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.post-stat{font-size:12px;font-weight:750;color:var(--muted);padding:7px 4px;white-space:nowrap}.post-owner-tools{display:flex;justify-content:flex-end;margin:0 0 8px}.account-hero{padding:0;overflow:hidden}.account-cover{height:170px;background:linear-gradient(135deg,#dcece4,#f6faf8);background-size:cover;background-position:center}.account-head{display:flex;gap:18px;align-items:center;padding:0 24px 22px;margin-top:-44px;position:relative}.account-avatar{width:112px;height:112px;border:5px solid var(--card);margin:0}.account-identity{flex:1;min-width:0}.account-identity h1{margin:45px 0 2px;font-size:25px}.account-identity p{margin:7px 0 0}.account-actions{display:flex;gap:8px;flex-wrap:wrap;align-self:flex-end}.account-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0}.account-stats>div{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px}.account-stats b{display:block;font-size:21px}.account-stats span{font-size:12px;color:var(--muted)}.account-posts{padding:0;overflow:hidden}.account-posts-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px;border-bottom:1px solid var(--line)}.account-posts-head h2{margin:0}.account-posts-head p{margin:2px 0 0}.post-table{width:100%;overflow:auto}.post-row{display:grid;grid-template-columns:minmax(250px,2fr) 80px 80px 90px 100px 105px 65px;gap:10px;align-items:center;padding:13px 16px;border-bottom:1px solid var(--line);min-width:820px}.post-row:last-child{border-bottom:0}.post-row-head{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);font-weight:800;background:var(--surface)}.post-row-title{min-width:0}.post-row-title a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.post-row-title small{display:block;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-pill{display:inline-block;padding:3px 8px;border-radius:999px;font-size:11px;font-style:normal;font-weight:800;background:var(--surface);color:var(--muted)}.status-publish{background:#e9f7ef;color:#18723f}.status-draft{background:#fff6df;color:#8a6500}.status-pending{background:#fff0e8;color:#9a4c1c}.section-title{display:flex;justify-content:space-between;align-items:center;margin:18px 0 10px}.section-title h2{margin:0;font-size:21px}
@media(max-width:820px){.profile-editor-media{grid-template-columns:1fr}.editor-banner{height:130px}.account-cover{height:135px}.account-head{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:0 16px 18px;margin-top:-38px}.account-avatar{width:88px;height:88px}.account-identity h1{margin:42px 0 2px;font-size:21px}.account-actions{grid-column:1/-1}.account-stats{grid-template-columns:repeat(2,1fr)}.account-posts-head{align-items:flex-start;flex-direction:column}.post-stat{font-size:11px}}

/* Boost / Sponsored posts */
.s74-sponsored-post{border:1px solid rgba(46,91,255,.25);position:relative}.sponsored-tag{display:inline-flex;align-items:center;margin-left:6px;padding:2px 7px;border-radius:999px;font-size:11px;font-weight:700;background:var(--blue-l);color:var(--blue)}.status-active{color:#0a7a43}.status-pending{color:#a15c00}.status-paused{color:#6b7791}.status-rejected{color:#b42318}.status-completed{color:#4a566f}

/* Community navigation */
.community-nav-create{font-size:12px;margin-left:24px}

/* YouTube-style comment replies */
.comment-actions .comment-reply-link{display:inline-flex;align-items:center;text-decoration:none;font-weight:800;color:var(--muted);padding:4px 6px;border-radius:6px}.comment-actions .comment-reply-link:hover{background:var(--surface);color:var(--brand)}.comment .comment-respond{margin:10px 0 4px 8px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.comment .comment-respond .comment-reply-title{font-size:14px;margin:0 0 8px}.comment .comment-respond textarea{min-height:78px}.comment .children{margin-left:28px;padding-left:8px;border-left:1px solid var(--line)}

/* Automatic post categories - separate from Communities */
.s74-post-categories{display:inline-flex;gap:5px;vertical-align:middle;flex-wrap:wrap}
.category-tag{font-size:11px;padding:2px 7px;border-radius:999px}
