/* Nexus Explore — Instagram-inspired, headerless, fully themed and responsive.
   Scoped to Explore: never touches feed, profiles, messages or global navigation. */
body.nord-nexus-active.nexus-explore-open #page-hub .nx-grid{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;width:100%!important;max-width:none!important;
  margin:0!important;padding:0!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-main{
  box-sizing:border-box;min-width:0;width:100%!important;
  max-width:none!important;margin:0!important;border:0!important;
  background:var(--surface)!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-right{display:none!important}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-page{
  box-sizing:border-box;display:block;min-height:0!important;
  width:min(1360px,100%);max-width:none;margin:0 auto;
  padding:20px clamp(16px,2.6vw,38px) 38px!important;
  background:transparent!important;color:var(--text);
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-search-shell{
  position:relative!important;top:auto!important;z-index:2!important;
  width:100%;background:transparent!important;padding:0 0 14px!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-search{
  display:flex;align-items:center;gap:12px;height:48px;
  padding:0 15px!important;border:1px solid var(--border);
  border-radius:12px;background:var(--surface-2);color:var(--text);
  transition:background .16s ease,border-color .16s ease;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-search:focus-within{
  border-color:var(--accent);background:var(--surface);
  box-shadow:0 0 0 2px var(--accent-soft);
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-search input{
  min-width:0;flex:1;background:transparent!important;
  border:0!important;box-shadow:none!important;outline:0!important;
  font-size:14px!important;color:var(--text)!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-clear{
  cursor:pointer;flex:0 0 28px;width:28px;height:28px;
  border-radius:50%;color:var(--muted);
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-clear:hover{
  color:var(--text);background:var(--surface-2);
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-filters{
  display:flex;gap:8px;flex-wrap:wrap;align-items:center;
  padding:0 0 16px;margin:0;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-filter{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:34px;padding:7px 14px;border:1px solid var(--border);
  border-radius:999px;background:var(--surface);color:var(--text-2);
  font:inherit;font-size:12px;font-weight:700;line-height:1.2;
  cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-filter:hover{
  background:var(--surface-2);border-color:var(--border-strong);
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-filter.active{
  color:var(--accent);border-color:var(--accent);
  background:var(--accent-soft);
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-filter:focus-visible,
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-tile:focus-visible,
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-search button:focus-visible{
  outline:2px solid var(--accent);outline-offset:2px;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-content{
  min-height:0;min-width:0;background:transparent!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-section{
  min-width:0;margin:0 0 24px;background:transparent!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-section-head{
  display:flex;align-items:center;justify-content:space-between;
  margin:0 0 11px;gap:12px;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-section-head strong{
  font-size:14px;font-weight:750;color:var(--text);
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-accounts{
  background:var(--surface)!important;border:1px solid var(--border);
  border-radius:12px;overflow:hidden;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:3px;min-width:0;width:100%;background:transparent!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-tile{
  position:relative;display:block;min-width:0;aspect-ratio:1;
  overflow:hidden;border:0!important;border-radius:2px;padding:0!important;
  background:var(--surface-2);cursor:pointer;color:var(--text);
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-tile>img,
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-tile>video{
  display:block;width:100%;height:100%;object-fit:cover;
  transition:transform .18s ease;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-tile:hover>img,
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-tile:hover>video{
  transform:scale(1.02);
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-text-tile{
  display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;padding:clamp(12px,2vw,24px);
  background:var(--surface-2)!important;color:var(--text);
  text-align:center;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-text-tile p{
  font-size:clamp(12px,1.15vw,15px);font-weight:550;line-height:1.5;
  color:var(--text);overflow-wrap:anywhere;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-overlay{
  background:rgba(9,13,22,.58);color:white;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-video-badge{
  position:absolute;top:10px;right:10px;z-index:2;
  color:white;font-size:15px;filter:drop-shadow(0 1px 4px rgba(0,0,0,.5));
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-empty{
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;
  gap:0;width:100%;min-height:min(35vh,290px)!important;max-height:none!important;
  padding:26px 16px;margin:0;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;text-align:center;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-empty>div{
  max-width:380px;width:100%;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-empty i.nx-explore-empty-icon{
  width:58px;height:58px;display:grid;place-items:center;
  margin:0 auto 13px;border-radius:50%;
  background:var(--surface-2);border:1px solid var(--border);
  color:var(--text);font-size:23px;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-empty strong{
  font-size:17px;font-weight:800;color:var(--text);line-height:1.3;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-empty small{
  font-size:13px;line-height:1.5;color:var(--muted);
  margin:7px auto 0;
}
/* Instagram-inspired empty-state CTA: restrained surface, clear alignment,
   no saturated blue tile or inherited oversized 48px icon. */
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-empty .nx-explore-cta{
  box-sizing:border-box;display:inline-flex!important;align-items:center!important;
  justify-content:center!important;gap:10px!important;
  flex:0 0 auto;width:max-content!important;min-width:0!important;max-width:100%;
  min-height:44px!important;height:44px!important;max-height:44px!important;
  margin:18px auto 0!important;padding:5px 15px 5px 6px!important;
  border:1px solid var(--border)!important;border-radius:12px!important;
  background:var(--surface)!important;color:var(--text)!important;
  box-shadow:none!important;font:inherit;font-size:13px!important;
  font-weight:750!important;line-height:1.2!important;white-space:nowrap;
  cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-empty .nx-explore-cta-icon{
  box-sizing:border-box;display:inline-flex!important;align-items:center!important;
  justify-content:center!important;flex:0 0 32px!important;
  width:32px!important;height:32px!important;min-height:0!important;
  padding:0!important;margin:0!important;
  border:1px solid var(--border)!important;border-radius:9px!important;
  background:var(--surface-2)!important;color:var(--accent)!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-empty .nx-explore-cta-icon>i{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box;flex:0 0 15px!important;
  width:15px!important;height:15px!important;min-width:0!important;min-height:0!important;
  margin:0!important;padding:0!important;border:0!important;
  border-radius:0!important;background:transparent!important;
  color:inherit!important;font-size:14px!important;line-height:1!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-empty .nx-explore-cta-label{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:0;height:100%;line-height:1.2;white-space:nowrap;
  color:inherit;font-size:13px;font-weight:750;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-empty .nx-explore-cta:hover{
  border-color:var(--accent)!important;
  background:var(--accent-soft)!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-empty .nx-explore-cta:active{
  transform:translateY(1px);
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-empty .nx-explore-cta:focus-visible{
  outline:2px solid var(--accent)!important;outline-offset:3px;
}
@media(prefers-reduced-motion:reduce){
  body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-empty .nx-explore-cta{transition:none}
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-error{
  margin:0;background:transparent!important;border:0!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-skeleton-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;
  width:100%;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-skeleton{
  aspect-ratio:1;background:var(--surface-2);border-radius:2px;
  animation:nxExplorePulse 1.4s ease-in-out infinite;
}
@keyframes nxExplorePulse{0%,100%{opacity:.6}50%{opacity:1}}
/* Posts open in a focused preview; details and comments use the existing view. */
.nx-explore-modal-backdrop{
  position:fixed;inset:0;z-index:3100;display:flex;align-items:center;
  justify-content:center;padding:24px;background:rgba(5,8,15,.78);
}
.nx-explore-modal-backdrop[hidden]{display:none!important}
.nx-explore-modal{
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(285px,.85fr);
  width:min(960px,100%);max-height:min(780px,calc(100dvh - 48px));
  border:1px solid var(--border);border-radius:12px;
  background:var(--surface);color:var(--text);overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.32);
}
.nx-explore-modal-media{
  display:flex;align-items:center;justify-content:center;min-width:0;
  min-height:280px;max-height:inherit;background:var(--surface-2);overflow:hidden;
}
.nx-explore-modal-media img,.nx-explore-modal-media video{
  display:block;width:100%;max-height:calc(100dvh - 88px);height:100%;
  object-fit:contain;
}
.nx-explore-modal-media .nx-explore-text-tile{min-height:310px;padding:32px}
.nx-explore-modal-aside{
  display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto;
}
.nx-explore-modal-author{
  display:flex;align-items:center;gap:10px;padding:15px;
  border-bottom:1px solid var(--border);
}
.nx-explore-modal-author .nx-avatar{flex:0 0 auto}
.nx-explore-modal-author-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:750}
.nx-explore-modal-close{
  display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;
  border:0;border-radius:50%;background:var(--surface-2);color:var(--text);
  cursor:pointer;
}
.nx-explore-modal-caption{padding:18px 16px;min-height:80px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.55;color:var(--text)}
.nx-explore-modal-stats{
  display:flex;gap:16px;margin-top:auto;padding:15px 16px;
  border-top:1px solid var(--border);color:var(--text-2);font-size:12px;
}
.nx-explore-modal-stats span{display:inline-flex;align-items:center;gap:6px}
.nx-explore-modal-actions{display:flex;gap:9px;padding:0 16px 16px}
.nx-explore-modal-actions button{
  flex:1;min-width:0;display:inline-flex;align-items:center;justify-content:center;
  gap:8px;padding:10px 12px;min-height:40px;
  border:1px solid var(--border);border-radius:9px;
  background:var(--surface-2);color:var(--text);
  font:inherit;font-size:12px;font-weight:750;cursor:pointer;
}
.nx-explore-modal-actions .nx-explore-open-full{
  color:white;background:var(--accent);border-color:var(--accent);
}
body.nx-explore-preview-open{overflow:hidden}
@media(max-width:900px){
  body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-grid,
  body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-skeleton-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:620px){
  body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-page{
    padding:12px 10px 24px!important;
  }
  body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-grid,
  body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-skeleton-grid{
    grid-template-columns:minmax(0,1fr);gap:4px;
  }
  body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-filters{
    flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:13px;
  }
  body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-filters::-webkit-scrollbar{display:none}
  body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-filter{flex:0 0 auto}
  .nx-explore-modal-backdrop{padding:10px}
  .nx-explore-modal{grid-template-columns:1fr;overflow-y:auto;max-height:calc(100dvh - 20px)}
  .nx-explore-modal-media{min-height:180px;max-height:45dvh}
  .nx-explore-modal-media img,.nx-explore-modal-media video{max-height:45dvh}
  .nx-explore-modal-aside{overflow:visible}
}
@media(prefers-reduced-motion:reduce){
  body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-skeleton{animation:none}
  body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-tile>img,
  body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-tile>video{transition:none}
}


/* Explore background is a single themed surface across its entire viewport. */
body.nord-nexus-active.nexus-explore-open .nord-page,
body.nord-nexus-active.nexus-explore-open #page-hub,
body.nord-nexus-active.nexus-explore-open #page-hub .nx-shell,
body.nord-nexus-active.nexus-explore-open #page-hub .nx-grid,
body.nord-nexus-active.nexus-explore-open #page-hub .nx-main,
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-page,
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-content,
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-empty,
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-error {
  background:var(--surface)!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub,
body.nord-nexus-active.nexus-explore-open #page-hub .nx-shell,
body.nord-nexus-active.nexus-explore-open #page-hub .nx-grid,
body.nord-nexus-active.nexus-explore-open #page-hub .nx-main{
  min-height:100%!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-main{
  display:flex!important;flex-direction:column!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-page{
  display:flex!important;flex:1 0 auto!important;flex-direction:column!important;
  min-height:100%!important;width:100%!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-content{
  display:flex!important;flex:1 0 300px!important;flex-direction:column!important;min-height:300px!important;
}
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-content>.nx-explore-empty:only-child,
body.nord-nexus-active.nexus-explore-open #page-hub .nx-explore-content>.nx-explore-error:only-child{
  flex:1 0 auto!important;min-height:320px!important;display:flex!important;
  align-items:center!important;justify-content:center!important;
}
