/* P1N Community Engine v0.2.1 — homepage, navigation and brand art refinement */
/* Navigation: intentional hierarchy; keep account actions in the user menu. */
.ce-mobile-destinations{display:none}
.left-rail .ce-primary-side{margin-bottom:14px}
.left-rail .ce-community-side{padding-top:13px;border-top:1px solid rgba(96,154,212,.18);margin-bottom:15px}
.left-rail .ce-primary-side .side-link{min-height:42px}
.left-rail .side-link .ce-side-label{min-width:0;flex:1;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.84rem;width:auto!important;text-align:left!important}
.left-rail .side-link .ce-side-icon{flex:0 0 32px;width:32px!important;height:32px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#102b4c;min-width:32px}
.left-rail .side-link .ce-side-icon .ui-icon{width:18px;height:18px;flex:none}
.left-rail .sidebar-section .side-caption{letter-spacing:.13em;font-size:10px}
.ce-sidebar-foot-link{padding-top:7px;border-top:1px solid rgba(96,154,212,.17)}
.ce-sidebar-foot-link>a{display:flex;gap:7px;align-items:center;padding:9px 8px;color:#83dff4;font-size:12px;font-weight:750}
.ce-sidebar-foot-link svg{height:15px;width:15px}
.ce-sidebar-foot-link>a:hover{color:#fff}
.ce-account-menu{position:relative;z-index:80;flex-shrink:0}
.ce-account-menu>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:center;border:1px solid #285b83;border-radius:50%;padding:2px;transition:border-color .17s,box-shadow .17s}
.ce-account-menu>summary::-webkit-details-marker{display:none}
.ce-account-menu[open]>summary,.ce-account-menu>summary:hover{border-color:#53d9f3;box-shadow:0 0 0 3px #1b92db33}
.ce-account-menu>summary>.avatar{width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;object-fit:cover;border-radius:50%}
.ce-account-panel{position:absolute;right:0;top:calc(100% + 12px);width:242px;padding:9px;border:1px solid #335c86;border-radius:14px;background:#0e203b;box-shadow:0 22px 52px #0009;z-index:100}
.ce-account-panel:before{content:'';position:absolute;right:16px;top:-7px;width:12px;height:12px;transform:rotate(45deg);background:#0e203b;border-left:1px solid #335c86;border-top:1px solid #335c86}
.ce-account-heading{display:flex;align-items:center;gap:10px;padding:9px 8px 12px;margin-bottom:6px;border-bottom:1px solid #25476a}
.ce-account-heading>.avatar{width:35px!important;height:35px!important;min-width:35px!important;max-width:35px!important;border-radius:50%;object-fit:cover}
.ce-account-heading>span{min-width:0;display:flex;flex-direction:column}
.ce-account-heading strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:white}
.ce-account-heading small{font-size:11px;color:#93bbda}
.ce-account-panel>a,.ce-account-panel form button{width:100%;display:flex;align-items:center;gap:10px;padding:9px 10px;font-size:12px;font-weight:650;color:#c8dff2;border-radius:9px;text-align:left;border:none;background:transparent}
.ce-account-panel>a:hover,.ce-account-panel form button:hover{color:#fff;background:#1d4166}
.ce-account-panel>a .ui-icon{width:16px;height:16px;color:#72c7f0}
.ce-account-panel form{margin:6px 0 0;padding-top:7px;border-top:1px solid #284768}
.ce-account-panel form button{cursor:pointer}
/* The hero illustration is an edge-fading native SVG, not a boxed raster image. */
.homepage-hero{min-height:278px;background:radial-gradient(ellipse at 83% 48%,rgba(16,131,220,.24),transparent 49%),linear-gradient(110deg,#0b2850,#0a3566 66%,#09234b);overflow:hidden}
.homepage-hero::before{background-image:url('p1n-engine-hero-v021.svg');right:0;top:0;bottom:0;width:68%;height:100%;background-size:100% 100%;opacity:1;pointer-events:none}
.homepage-hero::after{background:linear-gradient(90deg,#092b55 0%,rgba(9,43,85,.92) 34%,rgba(9,43,85,.26) 69%,transparent 92%);pointer-events:none}
.homepage-hero .hero-lines{opacity:.12}
.homepage-hero .hero-content{max-width:62%;min-width:0}
.homepage-hero h1{font-size:clamp(1.75rem,2.9vw,2.9rem);line-height:1.14}
.homepage-hero p{max-width:465px}
/* Compact activity-ordered conversation list in the main column. */
.ce-home-conversations{margin:22px 0 12px}
.ce-home-conversations .section-heading{margin:16px 0 11px}
.ce-home-topics{border:1px solid #28517a;border-radius:15px;background:linear-gradient(180deg,#112845,#0d213d);overflow:hidden}
.ce-home-topic{display:flex;align-items:center;gap:12px;min-height:65px;padding:11px 15px;color:#f1f8ff;border-bottom:1px solid #294a6d;transition:background .16s}
.ce-home-topic:last-child{border-bottom:0}
.ce-home-topic:hover{background:#174068}
.ce-home-topic:focus-visible{outline:2px solid #59dff6;outline-offset:-3px}
.ce-home-topic-icon{display:flex;justify-content:center;align-items:center;flex:0 0 38px;width:38px;height:38px;background:#193d65;border-radius:10px;font-size:18px}
.ce-home-topic-text{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.ce-home-topic-text strong{font-size:13px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ce-home-topic-text small{font-size:11px;color:#99bad6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ce-home-topic-count{font-size:12px;font-weight:760;color:#92c6e7;white-space:nowrap;min-width:54px;text-align:right}
.ce-home-topic-count span{font-size:10px;font-weight:500;color:#90b5d6}
.ce-home-topic>.ui-icon{width:16px;height:16px;flex:none;color:#4bd6f3}
.ce-home-mobile-activity{display:none}
/* Denser, differentiated discussion/activity widgets. */
.ce-home-rail{gap:12px}
.ce-home-rail .panel{border-radius:12px}
.ce-home-rail .panel-head{padding:10px 12px}
.ce-home-rail .panel-head h3{font-size:12px}
.ce-home-rail .panel-head a{font-size:11px}
.ce-home-rail .mini-stats>div{padding:8px 3px}
.ce-home-rail .mini-stats strong{font-size:1.2rem}
.ce-rail-compact .ce-rail-row{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-bottom:1px solid #24466a;text-decoration:none;transition:background .14s}
.ce-rail-compact .ce-rail-row:last-child{border-bottom:0}
.ce-rail-compact .ce-rail-row:hover{background:#1b3c61}
.ce-rail-row-title{font-size:12px;line-height:1.35;font-weight:770;color:#e9f5ff;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.ce-rail-row small{font-size:10px;color:#91b6d7;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ce-rail-pin{color:#f9b443;margin-right:2px;font-size:11px}
.ce-rail-activity .ce-rail-row-title{font-weight:650}
.ce-home-rail .ce-presence-020 .ce-online-overview{padding:10px 12px 6px}
.ce-home-rail .ce-online-facegrid{padding:0 12px 10px}
.ce-home-rail .ce-presence-foot{padding:9px 12px}
/* Keep navigation readable at laptop/tablet/mobile widths. */
@media(max-width:1450px){.ce-home-topic-count span{display:none}.homepage-hero .hero-content{max-width:65%}}
@media(max-width:1120px){.ce-home-mobile-activity{display:block;margin:20px 0}.ce-home-mobile-activity .ce-feed-item:nth-child(n+5){display:none!important}}
@media(max-width:760px){
  .ce-mobile-destinations{display:flex}
  .ce-account-menu{display:flex;align-items:center}
  .ce-account-menu>summary>.avatar{height:30px!important;width:30px!important;min-width:30px!important;max-width:30px!important}
  .ce-account-panel{position:fixed;right:10px;top:66px;max-width:calc(100vw - 20px)}
  .ce-mobile-destinations .side-link{min-height:39px}
  .homepage-hero{min-height:265px}
  .homepage-hero .hero-content{max-width:100%}
  .homepage-hero::before{width:100%;right:-35%;opacity:.35}
  .homepage-hero::after{background:linear-gradient(90deg,rgba(9,43,85,.98),rgba(9,43,85,.8) 67%,rgba(9,43,85,.40))}
  .ce-home-topic{gap:9px;padding:10px;min-height:62px}
  .ce-home-topic-icon{width:34px;height:34px;flex-basis:34px}
  .ce-home-topic-text strong{font-size:12px}
  .ce-home-topic-count{min-width:20px}
}
@media(max-width:420px){.ce-home-topic-count{font-size:11px}.ce-home-topic>.ui-icon{display:none}.homepage-hero h1{font-size:1.75rem}}
@media(prefers-reduced-motion:reduce){.ce-home-topic,.ce-rail-row,.ce-account-menu>summary{transition:none}}

.ce-member-shortcuts{display:flex;flex-wrap:wrap;gap:9px;margin:13px 0 18px}.ce-member-shortcuts a{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:10px;border:1px solid #2d628d;background:#132e50;color:#c6f3ff;font-size:12px;font-weight:700}.ce-member-shortcuts a:hover{background:#18446d;color:white}.ce-member-shortcuts svg{height:15px;width:15px}
