/* P1N Community Engine 0.1.3 -- conversations, navigation and activity polish.
 * Purposefully loaded after the prior theme styles, before site-owner custom CSS.
 */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.ui-icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex:none}
/* Site-wide search, prominent focus state, one clear submit action. */
.site-top .global-search{order:2;position:relative;display:flex;align-items:center;width:clamp(195px,20vw,340px);height:44px;min-width:0;padding:3px 4px 3px 14px;gap:9px;background:linear-gradient(115deg,#102b4d,#0d203c);border:1px solid #37658f;border-radius:13px;transition:box-shadow .18s,border-color .18s}
.site-top .global-search:focus-within{border-color:#39d1ee;box-shadow:0 0 0 3px #24cbed20,0 10px 30px #0003}
.site-top .global-search input{order:0;width:100%;min-width:0;height:35px;background:transparent;color:#f2fbff;font-size:.88rem;appearance:none;border:0;box-shadow:none;padding:0;outline:none}
.site-top .global-search input::-webkit-search-cancel-button{cursor:pointer;filter:grayscale(1) brightness(2)}
.site-top .global-search input::placeholder{color:#a5bad6;opacity:1}
.site-top .global-search .search-shortcut{color:#9bbee4;border:1px solid #2e5279;border-radius:5px;background:#102b4b;padding:2px 7px;font:700 11px/17px ui-monospace,monospace}
.site-top .global-search .search-submit{order:1;width:37px;height:35px;min-width:37px;display:grid;place-items:center;border:1px solid transparent;border-radius:9px;background:#134b77;color:#b4f4ff;transition:background .15s,color .15s}
.site-top .global-search .search-submit:hover{background:#137ab3;color:#fff}
.site-top .global-search .search-submit .ui-icon{width:19px;height:19px}
.site-top .mobile-search-link{display:none;color:#c5e8ff}
/* Notifications are a real accessible dropdown, rather than a tiny decorative glyph. */
.site-top .notify-menu{order:3;position:relative;flex:none;z-index:80}
.site-top .top-user{order:4;display:flex;align-items:center}
.site-top .top-user .avatar{width:37px;height:37px;min-width:37px;aspect-ratio:1;border-radius:50%;object-fit:cover}
.site-top .top-notify{position:relative;width:44px;height:44px;display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;color:#c8e7ff;border:1px solid transparent;border-radius:11px;transition:background .18s,border-color .18s}
.site-top .top-notify::-webkit-details-marker{display:none}
.site-top .notify-menu[open] .top-notify,.site-top .top-notify:hover{background:#15375d;border-color:#36709b;color:#fff}
.site-top .top-notify .ui-icon{width:23px;height:23px}
.site-top .notify-count{position:absolute;top:2px;right:1px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:11px;color:#04152a;background:#5de0ff;box-shadow:0 0 0 2px #091a32;font-size:.67rem;font-weight:900;font-variant-numeric:tabular-nums}
.notify-dropdown{position:absolute;top:calc(100% + 12px);right:-54px;width:min(360px,calc(100vw - 28px));background:#101f3b;color:#e7f5ff;border:1px solid #32618a;border-radius:15px;overflow:hidden;box-shadow:0 25px 70px #020914c7;z-index:100}
.notify-dropdown-head{padding:15px 17px;border-bottom:1px solid #294c76;display:flex;justify-content:space-between;align-items:center;background:#153457;gap:10px}
.notify-dropdown-head strong{font-size:.96rem}
.notify-dropdown-head span{font-size:.76rem;color:#b0cbe8}
.notify-item{display:flex;gap:10px;align-items:flex-start;padding:12px 15px;border-bottom:1px solid #294461;transition:background .15s}
.notify-item:hover,.notify-item.is-unread{background:#16406369}
.notify-item>span:last-child{display:flex;flex-direction:column;min-width:0;gap:5px}
.notify-item strong{font-size:.81rem;line-height:1.4;font-weight:680;overflow-wrap:anywhere}
.notify-item small{color:#9fbedf;font-size:.72rem}
.notify-dot{width:8px;height:8px;margin-top:6px;flex:0 0 8px;border-radius:50%;background:#476685}
.notify-item.is-unread .notify-dot{background:#54dfff;box-shadow:0 0 12px #31d8f9a0}
.notify-empty{font-size:.83rem;color:#adcae7;padding:15px;margin:0}
.notify-dropdown-footer{padding:12px 15px;background:#0d2746;text-align:center;color:#6ee9ff;font-size:.81rem;font-weight:750}
.notify-dropdown-footer a:hover{text-decoration:underline}
/* Latest activity: prevent placeholder spans from inheriting flex:1 (the overflow bug). */
.homepage-lower{grid-template-columns:minmax(0,1.5fr) minmax(260px,.88fr);align-items:stretch;gap:18px;margin-top:8px}
.homepage-lower>section,.homepage-lower>aside{display:flex;flex-direction:column;min-width:0}
.homepage-lower .section-heading{min-height:43px;display:flex;align-items:center;justify-content:space-between;margin-top:26px;margin-bottom:13px}
.homepage-lower .section-heading h2{margin:0}
.homepage-lower .welcome-decoration{font-size:1.35rem;color:#6ce6fd}
.homepage-lower .activity-panel,.homepage-lower .community-welcome{flex:1;min-height:250px;border-radius:15px;box-shadow:inset 0 1px 0 #ffffff0b}
.homepage-lower .activity-panel{display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(135deg,#112747,#0b203c)}
.homepage-lower .activity-row{min-height:80px;display:flex;align-items:center;gap:13px;padding:13px 17px;border-bottom:1px solid #34557864;min-width:0}
.homepage-lower .activity-row:last-child{border-bottom:0}
.homepage-lower .activity-row>.avatar{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;flex:0 0 42px!important;aspect-ratio:1;display:grid;place-items:center;padding:0;object-fit:cover;border-radius:50%!important;line-height:1;overflow:hidden;font-size:.92rem;white-space:nowrap;box-shadow:0 0 0 2px #113653}
.homepage-lower .activity-row>.activity-copy{flex:1;display:flex;flex-direction:column;gap:5px;min-width:0;max-width:100%}
.homepage-lower .activity-row>.activity-copy strong{display:block;font-size:.84rem;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.homepage-lower .activity-row>.activity-copy small{display:block;min-width:0;font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#a9c7e4}
.homepage-lower .activity-row time{margin-left:auto;flex-shrink:0;align-self:center;font-size:.71rem;white-space:nowrap;color:#99c5e8}
.homepage-lower .activity-empty{min-height:250px}
.homepage-lower .community-welcome{margin-top:0;padding:23px 26px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;border:1px solid #4267a4;background:radial-gradient(circle at 100% 0%,#396bbb77,transparent 52%),linear-gradient(145deg,#142f54,#121e42)}
.homepage-lower .community-welcome-icon{width:49px;height:49px;display:grid;place-items:center;background:#22528755;border:1px solid #3374ab66;border-radius:14px;margin:0 0 12px}
.homepage-lower .community-welcome h3{font-size:clamp(1.05rem,1.2vw,1.3rem);max-width:340px;margin:11px 0 8px}
.homepage-lower .community-welcome p{max-width:390px;margin:0 0 18px;font-size:.84rem}
.homepage-lower .community-welcome .btn{margin-top:auto}
/* Composer: friendly actual BBCode controls, accessible preview, reliable character feedback. */
.ce-compose-panel{padding:23px clamp(16px,2vw,28px);overflow:visible}
.ce-compose-panel .ce-compose-intro{padding-bottom:5px}
.ce-compose-panel .ce-compose-intro h2{margin:8px 0 5px;font-size:1.3rem}
.ce-compose-panel .ce-compose-intro p{font-size:.84rem;color:var(--muted);margin:0 0 12px}
.ce-composer{margin:14px 0 5px;border:1px solid #315b85;border-radius:14px;background:#0d203d;overflow:hidden;box-shadow:0 6px 24px #00000020}
.ce-composer:focus-within{border-color:#409dde}
.ce-editor-top{height:49px;display:flex;align-items:center;padding:5px 11px;background:#132e50;border-bottom:1px solid #2d567e}
.ce-editor-top .ce-editor-hint{font-size:.71rem;color:#a7c9e8}
.ce-editor-top .editor-tabs{display:flex;align-items:center;gap:5px}
.ce-mode{border:0;border-radius:8px;background:transparent;color:#b6d1eb;display:inline-flex;align-items:center;gap:7px;padding:8px 13px;font-size:.83rem;font-weight:760}
.ce-mode .ui-icon{width:17px;height:17px}
.ce-mode:hover,.ce-mode.is-active{background:#175382;color:#eafcff}
.ce-mode.is-active{box-shadow:inset 0 -2px #5fdffb}
.ce-toolbar{display:flex;flex-wrap:wrap;gap:3px;align-items:center;padding:9px 11px;background:#102645;border-bottom:1px solid #2d5279}
.ce-tool{width:36px;height:35px;border:1px solid transparent;background:transparent;color:#c8e5ff;border-radius:8px;display:grid;place-items:center;font-weight:700;font-size:.8rem}
.ce-tool .ui-icon{width:18px;height:18px}
.ce-tool:hover,.ce-tool:focus-visible{background:#1b5687;border-color:#3b78a8;color:#fff}
.ce-tool.ce-spoiler-tool{width:auto;padding:0 9px}
.ce-toolbar-divider{width:1px;height:24px;background:#356187;margin:0 7px}
.ce-help{border:0;background:none;color:#9dd5ee;display:flex;align-items:center;gap:7px;font-size:.77rem;padding:6px}
.ce-help:hover{color:#fff}
.ce-help .ui-icon{width:16px;height:16px}
.ce-bb-help{padding:13px 15px;background:#123659;color:#c0ddf6;font-size:.78rem;line-height:1.8;border-bottom:1px solid #356187}
.ce-bb-help code{background:#0b2340;padding:2px 5px;border-radius:4px;color:#89f0fd}
.ce-composer textarea{display:block!important;min-height:180px;max-height:70vh;padding:17px 18px;line-height:1.65;font-size:.93rem;resize:vertical;background:#0b1c34;color:#f3f9ff;border:0;border-radius:0;box-shadow:none;outline:none}
.ce-new-thread .ce-composer textarea{min-height:225px}
.ce-composer textarea:focus{box-shadow:inset 0 0 0 1px #29658d}
.ce-composer textarea[hidden]{display:none!important}
.ce-preview-output{min-height:180px;background:#0c203a;padding:17px 18px;color:#f0faff;line-height:1.65;overflow-wrap:anywhere}
.ce-preview-output:empty:before{content:'Type something in the editor to preview it.';color:#a1bdd9}
.ce-editor-foot{display:flex;align-items:center;gap:12px;justify-content:space-between;background:#132b4b;padding:10px 14px;font-size:.74rem}
.ce-char-status{flex:none;font-variant-numeric:tabular-nums;color:#a8c7e8}
.ce-char-status.is-near-limit{color:#ffcf8a}
.ce-char-status.is-over-limit{color:#ff8d9e}
.ce-compose-panel .form-actions{margin-top:16px}
.ce-compose-panel .form-actions .btn.primary{min-height:43px}
.ce-quote-action{display:inline-flex;align-items:center;gap:5px;color:#a6e5fc}
.ce-quote-action .ui-icon{width:16px;height:16px}
.ce-link-popover{background:#132e50;border-bottom:1px solid #3a6286;padding:14px 16px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr) auto auto;align-items:end;gap:10px}
.ce-link-popover[hidden],.ce-bb-help[hidden],.ce-preview-output[hidden]{display:none!important}
.ce-link-popover label{display:flex;flex-direction:column;gap:4px;color:#bfe4ff;font-size:.72rem;font-weight:650}
.ce-link-popover input{width:100%;height:35px;background:#0c1d36;border:1px solid #3b6389;border-radius:8px;padding:6px 10px;color:#e8f8ff}
.ce-link-popover .btn{height:35px;min-height:35px;padding:6px 10px}
.ce-link-error{font-size:.76rem;color:#ffb3be;grid-column:1/-1}
.post-body{white-space:pre-wrap;overflow-wrap:anywhere}
.post-body blockquote.bb-quote{white-space:pre-wrap;border-left:3px solid #50cde9;border-radius:0 10px 10px 0;padding:12px 15px;background:#173454;margin:13px 0;max-width:100%;overflow-wrap:anywhere}
.post-body blockquote.bb-quote cite{display:block;font-size:.78rem;color:#8cecff;font-weight:770;font-style:normal;margin-bottom:8px}
.post-body pre.bb-code{background:#071427;border:1px solid #30516f;border-radius:9px;overflow-x:auto;padding:14px;margin:12px 0;white-space:pre;max-width:100%;font-size:.84rem;tab-size:4}
.post-body pre.bb-code code{font:inherit}
.post-body ul.bb-list{padding:0 0 0 24px;white-space:normal;margin:10px 0}
.post-body li{padding:2px 0}
.post-body .bb-spoiler{margin:12px 0;border:1px solid #315b82;background:#102846;border-radius:9px;padding:10px 12px}
.post-body .bb-spoiler summary{cursor:pointer;color:#96dff6;font-weight:780}
.post-body .bb-spoiler div{padding:10px 0 0}
.post-body a{color:#7deaff;text-decoration:underline;text-underline-offset:2px}
@media(max-width:1280px){.site-top .global-search{width:220px}.search-shortcut{display:none}.homepage-lower{grid-template-columns:minmax(0,1.2fr) minmax(245px,1fr)}}
@media(max-width:1050px){.homepage-lower{grid-template-columns:1fr;gap:0}.homepage-lower .community-welcome{min-height:220px}.site-top .global-search{width:190px}.ce-link-popover{grid-template-columns:1fr 1fr}.ce-link-popover .btn{width:auto}}
@media(max-width:830px){.site-top{gap:9px}.site-top .global-search{display:none}.site-top .mobile-search-link{display:grid;place-items:center;width:39px;height:39px;order:2;flex:none;border:1px solid #2d5b86;border-radius:10px;background:#102b48}.site-top .notify-menu{display:block;order:3}.site-top .top-user{display:flex;order:4}.site-top .top-user .avatar{width:34px;height:34px;min-width:34px}.site-top .mobile-toggle{order:5}.site-top .top-notify{width:39px;height:39px}.notify-dropdown{right:-60px}.homepage-lower .section-heading{min-height:40px}.ce-editor-top .ce-editor-hint{display:none}}
@media(max-width:550px){.site-top .top-brand{min-width:0}.site-top .top-brand-copy small{display:none}.site-top .top-brand-copy strong{font-size:.9rem;max-width:135px}.site-top .top-site-name{gap:6px}.site-top .engine-icon{width:35px;height:35px}.site-top .top-user{display:none}.site-top .mobile-search-link{width:35px}.site-top .top-notify{width:35px}.notify-dropdown{right:-50px}.homepage-lower .activity-row{padding:11px 12px;gap:10px}.homepage-lower .activity-row>.avatar{width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;flex-basis:36px!important}.homepage-lower .activity-row time{font-size:.64rem}.homepage-lower .community-welcome{padding:19px 20px}.ce-compose-panel{padding:16px 13px}.ce-toolbar{padding:7px 5px}.ce-tool{width:34px;height:34px}.ce-link-popover{grid-template-columns:1fr}.ce-link-popover .btn{width:100%}.ce-editor-foot{flex-wrap:wrap}.ce-help{font-size:.7rem}.ce-composer textarea{padding:14px}}
@media(prefers-reduced-motion:reduce){.ce-tool,.global-search,.top-notify,.notify-item{transition:none!important}}
/* Keep the navigation usable between desktop and tablet widths. */
@media(min-width:831px) and (max-width:1170px){
 .site-top .top-brand{min-width:195px}
 .site-top .top-brand-copy strong{max-width:164px;font-size:.94rem}
 .site-top .top-tabs{gap:0}
 .site-top .top-tabs a{padding:8px 9px;font-size:.78rem}
 .site-top .global-search{width:185px}
 .site-top .top-notify{width:37px}
 .site-top .top-user .avatar{width:33px;height:33px;min-width:33px}
}
@media(max-width:830px){
 .site-top{height:62px;min-height:62px;padding:0 12px}
 .site-top .top-brand{flex:1}
 .site-top .top-tabs{display:none}
 .site-top .mobile-toggle{display:block}
 .site-layout,.site-layout.no-right{display:block}
 .left-rail{display:none;position:fixed;top:62px;bottom:0;left:0;width:270px;overflow:auto;z-index:40;box-shadow:16px 0 50px #0008}
 .menu-open .left-rail{display:flex}
 .right-rail{border-left:0;padding:16px}
}
