/* Original production design system based on the 16 November approved reference.
   Strictly visual: existing APIs, authentication and real social data are unchanged. */
body.community-unified-theme:not([data-page="fellowship"]):not([data-page="prayer"]):not([data-page="forum"]){
 --blue:#052bba;--wine:#f00075;--gold:#ffc42d;--paper:#f5f8ff;--ink:#091c62;
 --gc-blue:#052bba;--gc-blue2:#031a78;--gc-pink:#f00075;--gc-sky:#10b5f6;--gc-gold:#ffc42d;--gc-soft:#f5f8ff;--gc-line:#c9dcff;--gc-ink:#091c62;
 background:#f6f9ff!important;color:#091c62!important
}
body.community-unified-theme:not([data-page="fellowship"]):not([data-page="prayer"]):not([data-page="forum"]) :is(.gcc-premium-header,.gcc-flagbar,.gcc-brand,.gcc-premium-nav,.mobile-dock,.bottom-nav){
 border-color:#ffc42d!important
}
body.community-unified-theme:not([data-page="fellowship"]):not([data-page="prayer"]):not([data-page="forum"]) :is(.gcc-flagbar,.gcc-premium-nav,.mobile-dock,.bottom-nav){
 background:linear-gradient(105deg,#031458,#0649df 48%,#031458)!important;color:#fff!important
}
body.community-unified-theme:not([data-page="fellowship"]):not([data-page="prayer"]):not([data-page="forum"]) :is(.gcc-panel,.gcc-apps,.social-rail>.card,.social-sidebar>.card,.post-card,.social-stream>.card){
 border:1px solid #b5cffd!important;border-radius:17px!important;background:#fff!important;box-shadow:0 5px 16px #08296a20!important;overflow:hidden
}
body.community-unified-theme:not([data-page="fellowship"]):not([data-page="prayer"]):not([data-page="forum"]) :is(.gcc-apps h2,.gcc-panel h2,.social-rail .card h2,.social-sidebar .card h2){
 background:linear-gradient(180deg,#0a65ff,#02228b)!important;color:#fff!important;border:1px solid #ffc42d!important;border-radius:12px;padding:8px 12px!important
}
body.community-unified-theme:not([data-page="fellowship"]):not([data-page="prayer"]):not([data-page="forum"]) :is(button.primary,.btn-primary,.active-tab,.mobile-dock a[aria-current="page"]){
 background:linear-gradient(180deg,#ff42a2,#eb0069)!important;color:#fff!important;border:1px solid #ffc42d!important
}
body.community-unified-theme:not([data-page="fellowship"]):not([data-page="prayer"]):not([data-page="forum"]) .gcc-reference-banner{
 background:linear-gradient(110deg,#0329a9,#04b7f8 18%,#fff 48%,#ff0097 88%,#0533c4);border-block:3px solid #ffc42d;overflow:hidden
}
body.community-unified-theme:not([data-page="fellowship"]):not([data-page="prayer"]):not([data-page="forum"]) .gcc-reference-banner img{width:100%;height:auto;display:block;object-fit:contain}
body.community-unified-theme:not([data-page="fellowship"]):not([data-page="prayer"]):not([data-page="forum"]) :is(a,button,input){transition:background-color .15s,color .15s,box-shadow .15s}
body.community-unified-theme:not([data-page="fellowship"]):not([data-page="prayer"]):not([data-page="forum"]) :is(a,button,input):focus-visible{outline:3px solid #f00075!important;outline-offset:2px}
@media(max-width:700px){body.community-unified-theme:not([data-page="fellowship"]):not([data-page="prayer"]):not([data-page="forum"]) .social-layout{grid-template-columns:minmax(0,1fr)!important;min-width:0!important}body.community-unified-theme:not([data-page="fellowship"]):not([data-page="prayer"]):not([data-page="forum"]) .gcc-reference-banner img{width:100%;max-height:220px;object-fit:contain}}

/* Mobile-first focused destinations; preserve working authenticated content. */
@media(max-width:760px){
 body.community-unified-theme[data-page="account"] main.shell,body.community-unified-theme[data-page="messages"] main.shell,body.community-unified-theme[data-page="groups"] main.shell{padding:12px 12px 96px!important;max-width:100%!important}
 body.community-unified-theme[data-page="account"] #page-root,body.community-unified-theme[data-page="messages"] #page-root,body.community-unified-theme[data-page="groups"] #page-root{min-width:0!important;width:100%!important}
 body.community-unified-theme[data-page="account"] main.shell>nav.bottom-nav,body.community-unified-theme[data-page="groups"] main.shell>nav.bottom-nav{display:none!important}
 body.community-unified-theme[data-page="messages"] .gc-messages-title,body.community-unified-theme[data-page="groups"] .gc-focus-heading{font-size:clamp(24px,6vw,32px)!important;line-height:1.2!important;margin:12px 4px 18px!important}
 body.community-unified-theme :is(.gcc-flagbar,.gcc-premium-nav,.navlinks){max-width:100vw;overflow-x:auto!important;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 body.community-unified-theme :is(.gcc-flagbar,.gcc-premium-nav,.navlinks)::-webkit-scrollbar{display:none}
 body.community-unified-theme :is(.gcc-flagbar,.gcc-premium-nav,.navlinks)>*{flex-shrink:0}
 body.community-unified-theme[data-page="account"] :is(input,select,textarea){max-width:100%;box-sizing:border-box}
}

/* Purpose-built page layouts: inbox and group activity take priority. */
body.community-unified-theme[data-page="messages"] .gc-messages-empty{max-width:580px;margin:12px auto;padding:clamp(24px,5vw,48px);background:#fff;border:1px solid #d9e3f7;border-radius:20px;text-align:center;box-shadow:0 8px 26px #08206b0b}
body.community-unified-theme[data-page="messages"] .gc-messages-empty h2{margin:0 0 10px;color:#0b225e;font-size:clamp(22px,4vw,30px)}
body.community-unified-theme[data-page="messages"] .gc-messages-empty p{margin:0 auto 22px;max-width:420px;color:#536480;line-height:1.55}
body.community-unified-theme[data-page="messages"] .gc-messages-empty .btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px}
body.community-unified-theme[data-page="messages"] .conversation-panel,body.community-unified-theme[data-page="messages"] .chat-history{background-color:#f5f8ff!important}
body.community-unified-theme[data-page="messages"] .chat-header{background:#082caa!important;color:#fff!important}
body.community-unified-theme[data-page="messages"] .message-bubble.sent{background:#dce8ff!important;color:#102858!important}
body.community-unified-theme[data-page="messages"] .chat-form>.primary{background:#052bba!important;border-color:#052bba!important}
body.community-unified-theme[data-page="messages"] main.shell,body.community-unified-theme[data-page="groups"] main.shell{min-height:0;padding-bottom:clamp(18px,4vw,36px)}
@media(max-width:760px){body.community-unified-theme[data-page="messages"] .gc-messages-empty{margin:8px 0;padding:30px 20px}body.community-unified-theme[data-page="messages"] .messenger{max-width:100%;min-width:0}body.community-unified-theme[data-page="messages"] .chat-header{border-radius:12px 12px 0 0}}

/* Member discovery: retain real portraits alongside identity and profile actions. */
.gc-discover-member{display:grid;grid-template-columns:52px minmax(0,1fr);column-gap:12px;align-items:center}
.gc-discover-member>.member-avatar{grid-column:1;grid-row:1/span 4;width:48px;height:48px;overflow:hidden;border-radius:50%}
.gc-discover-member>.member-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.gc-discover-member>strong,.gc-discover-member>p,.gc-discover-member>small,.gc-discover-member>a{grid-column:2;min-width:0}

/* Keep the persistent mobile navigation visible without empty footer space or clipped tabs. */
@media(max-width:760px){body.community-unified-theme[data-page="messages"] .community-footer,body.community-unified-theme[data-page="groups"] .community-footer{display:none!important}body.community-unified-theme .navlinks{max-width:100%;overflow-x:auto;white-space:nowrap;scrollbar-width:none}body.community-unified-theme main.shell{max-width:100%;box-sizing:border-box}body.community-unified-theme[data-page="messages"] .gc-messages-title,body.community-unified-theme[data-page="groups"] .gc-focus-heading{margin-top:8px!important}}


/* Owner-approved banner policy: the sole artwork is Home guest-only.
   Groups, people/discovery and every inner page must not inherit any banner. */
html body.community-unified-theme:not([data-page="home"]) :is(.gc-visitor-banner,.gcc-reference-banner,.reference-banner,.gc-banner-visual,.gc-banner-name-overlay,.gc-active-section,.hk-active-section,.reference-mission,.royal-image-banner){display:none!important}
html body.community-unified-theme[data-page="home"].gc-approved-member :is(.gcc-reference-banner,.gc-visitor-banner,.gc-active-section,.hk-active-section),
html body.community-unified-theme[data-page="home"].community-member :is(.gcc-reference-banner,.gc-visitor-banner,.gc-active-section,.hk-active-section),
html body.community-unified-theme[data-page="home"] :is(.gc-active-section,.hk-active-section){display:none!important}
html body.community-unified-theme[data-page="home"] #authbar{
 display:flex!important;flex-direction:row!important;justify-content:flex-end!important;
 align-items:center!important;flex-wrap:nowrap!important;gap:8px!important;
 width:100%!important;max-width:none!important;min-height:48px!important;
 margin:0!important;padding:8px 14px!important;box-sizing:border-box!important;
}
html body.community-unified-theme[data-page="home"] #authbar>.gc-auth-actions{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:flex-end!important;flex-wrap:nowrap!important;gap:9px!important;
 width:auto!important;max-width:100%!important;margin:0 0 0 auto!important;
}
html body.community-unified-theme[data-page="home"] #authbar>.gc-auth-actions>a{
 display:inline-flex!important;flex:0 0 auto!important;width:auto!important;
 min-height:38px!important;margin:0!important;padding:8px 13px!important;
 text-align:center!important;white-space:nowrap!important;border-radius:999px!important;
}
html body.community-unified-theme[data-page="home"] #authbar>.gc-auth-actions>.gc-auth-login{background:#fff!important;color:#1235ff!important;border:1px solid #8fa8e5!important}
html body.community-unified-theme[data-page="home"] #authbar>.gc-auth-actions>.gc-auth-register{background:#e00091!important;color:#fff!important;border:1px solid #ffcf32!important}
@media(max-width:760px){
 html body.community-unified-theme[data-page="home"] #authbar{
  min-height:52px!important;padding:7px 11px!important;justify-content:flex-end!important
 }
 html body.community-unified-theme[data-page="home"] #authbar>.gc-auth-actions>a{
  font-size:12px!important;min-height:37px!important;padding:8px 12px!important
 }
}


/* Hide must defeat older display:block!important rules on the approved artwork. */
html body.community-unified-theme[data-page="home"] .gcc-reference-banner[hidden],
html body.community-unified-theme[data-page="home"].gc-people-view :is(.gcc-reference-banner,.gc-visitor-banner,.gc-banner-visual),
html body.community-unified-theme[data-page="home"].gc-approved-member .gcc-reference-banner,
html body.community-unified-theme[data-page="home"].community-member .gcc-reference-banner{
 display:none!important;visibility:hidden!important;
}


/* Approved account entry and group-action treatments. */
html body.community-unified-theme[data-page="home"] #authbar>.gc-auth-actions>.gc-auth-register{background:#1235ff!important;color:#fff!important;border:2px solid #ffcf32!important}
html body.community-unified-theme[data-page="groups"] .gc-create-group-action,
html body.community-unified-theme[data-page="groups"] .group-create>summary{background:#1235ff!important;color:#fff!important;border:1px solid #ffcf32!important;border-radius:12px!important;min-height:46px!important;font-weight:800!important}
html body.community-unified-theme[data-page="groups"] :is(.group-create>summary,.gc-create-group-action):focus-visible{outline:3px solid #e00091!important;outline-offset:3px!important}

/* Integrated professional member profile and grouped account settings surfaces. */
html body.community-unified-theme[data-page="profile"] .member-profile-hero{
 overflow:hidden!important;border-radius:18px!important;background:#fff!important;
 border:1px solid #cedaef!important;box-shadow:0 7px 25px #0d245b20!important
}
html body.community-unified-theme[data-page="profile"] .member-profile-cover{
 min-height:145px!important;background:linear-gradient(115deg,#0a2da1,#1235ff 65%,#e00091)!important
}
html body.community-unified-theme[data-page="profile"] .member-profile-identity{
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;
 gap:14px!important;padding:13px 18px!important;min-width:0!important
}
html body.community-unified-theme[data-page="profile"] .member-profile-copy{min-width:0!important}
html body.community-unified-theme[data-page="profile"] :is(.member-profile-layout,.member-profile-page,.card){
 max-width:100%!important;min-width:0!important
}
html body.community-unified-theme[data-page="account"] #page-root{
 max-width:1024px!important;margin:0 auto!important
}
html body.community-unified-theme[data-page="account"] :is(.card,.account-panel){
 background:#fff!important;border:1px solid #ccd9ef!important;
 border-radius:17px!important;box-shadow:0 5px 20px #092d6112!important;
 padding:clamp(14px,2.7vw,25px)!important
}
html body.community-unified-theme[data-page="account"] :is(input,select,textarea){
 max-width:100%;min-height:42px;border-radius:10px!important;
 border:1px solid #aabbd7!important;background:#fff!important
}
html body.community-unified-theme[data-page="account"] :is(button,.btn):focus-visible{
 outline:3px solid #e00091!important;outline-offset:2px!important
}
@media(max-width:760px){
 html body.community-unified-theme[data-page="profile"] .member-profile-identity{
  padding:12px!important;gap:10px!important
 }
 html body.community-unified-theme[data-page="account"] #page-root{padding-inline:3px!important}
}
