/*
  NEUROVERSE WORKS™
  Secure Institutional Interface — Additive Surgical Layer
  This stylesheet intentionally overrides presentation only.
  It does not alter routes, content, scripts, storage contracts, or application logic.
*/

:root{
  --nvw-carbon:#05070a;
  --nvw-graphite:#0b0f14;
  --nvw-steel:#151b22;
  --nvw-paper:#f0eee7;
  --nvw-ash:#aeb5bd;
  --nvw-amber:#e7b85a;
  --nvw-amber-bright:#ffd983;
  --nvw-crimson:#9f2f3c;
  --nvw-crimson-bright:#d35b66;
  --nvw-cyan:#8adbe2;
  --nvw-line:rgba(240,238,231,.18);
  --nvw-faint:rgba(240,238,231,.055);
  --nvw-institutional-font:"Arial Narrow","Aptos Narrow","Roboto Condensed","Helvetica Neue Condensed","Segoe UI",sans-serif;
  --nvw-mono:ui-monospace,"SFMono-Regular",Consolas,"Liberation Mono",monospace;
}

.nvw-secure-strip{
  position:relative;
  z-index:9997;
  min-height:31px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:7px 54px 6px 18px;
  border-bottom:1px solid rgba(231,184,90,.30);
  background:
    linear-gradient(90deg,rgba(159,47,60,.18),transparent 22%,transparent 78%,rgba(159,47,60,.12)),
    #080b0f;
  color:#dadde1;
  font:800 10px/1.35 var(--nvw-mono);
  letter-spacing:.15em;
  text-transform:uppercase;
  text-align:center;
}
.nvw-secure-strip::before{
  content:"";
  width:7px;
  height:7px;
  flex:0 0 7px;
  background:var(--nvw-crimson-bright);
  box-shadow:0 0 0 3px rgba(211,91,102,.11),0 0 18px rgba(211,91,102,.45);
}
.nvw-secure-strip::after{
  content:"NVW-01";
  position:absolute;
  right:16px;
  color:var(--nvw-amber);
  letter-spacing:.08em;
}

.nvw-secure-plate{
  position:fixed;
  z-index:9998;
  left:0;
  top:50%;
  transform:translateY(-50%);
  writing-mode:vertical-rl;
  min-height:220px;
  max-height:68vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:13px 7px;
  border:1px solid rgba(231,184,90,.36);
  border-left:0;
  background:rgba(5,7,10,.86);
  backdrop-filter:blur(12px);
  color:#dfe3e7;
  font:800 9px/1.2 var(--nvw-mono);
  letter-spacing:.15em;
  text-transform:uppercase;
  box-shadow:12px 0 36px rgba(0,0,0,.24);
  pointer-events:none;
}
.nvw-secure-plate::before{
  content:"";
  width:5px;
  height:5px;
  margin-bottom:11px;
  background:var(--nvw-amber);
  box-shadow:0 0 12px rgba(231,184,90,.7);
}

/* Shared institutional atmosphere */
body[data-nvw-family="headquarters"],
body[data-nvw-family="editorial"],
body[data-nvw-family="research"],
body[data-nvw-family="restricted"],
body[data-nvw-family="utility"]{
  background-color:var(--nvw-carbon) !important;
  background-image:
    linear-gradient(rgba(240,238,231,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(240,238,231,.018) 1px,transparent 1px),
    radial-gradient(circle at 15% -5%,rgba(231,184,90,.12),transparent 29%),
    radial-gradient(circle at 96% 4%,rgba(138,219,226,.065),transparent 24%),
    linear-gradient(180deg,#090d12,#05070a 52%,#030405) !important;
  background-size:64px 64px,64px 64px,auto,auto,auto !important;
}

body[data-nvw-family="headquarters"] h1,
body[data-nvw-family="headquarters"] h2,
body[data-nvw-family="headquarters"] h3,
body[data-nvw-family="editorial"] h1,
body[data-nvw-family="editorial"] h2,
body[data-nvw-family="editorial"] h3,
body[data-nvw-family="research"] h1,
body[data-nvw-family="research"] h2,
body[data-nvw-family="research"] h3,
body[data-nvw-family="restricted"] h1,
body[data-nvw-family="restricted"] h2,
body[data-nvw-family="restricted"] h3,
body[data-nvw-family="utility"] h1,
body[data-nvw-family="utility"] h2,
body[data-nvw-family="utility"] h3{
  font-family:var(--nvw-institutional-font) !important;
  font-stretch:condensed;
  letter-spacing:-.035em !important;
}

body[data-nvw-family="headquarters"] .kicker,
body[data-nvw-family="editorial"] .kicker,
body[data-nvw-family="research"] .kicker,
body[data-nvw-family="restricted"] .kicker{
  font-family:var(--nvw-mono) !important;
  color:var(--nvw-amber-bright) !important;
  letter-spacing:.16em !important;
}

/* Headquarters public architecture */
body[data-nvw-family="headquarters"]{
  --gold:var(--nvw-amber) !important;
  --gold2:var(--nvw-amber-bright) !important;
  --ink:var(--nvw-paper) !important;
  --muted:#c5c5bf !important;
  --soft:#9ba4ad !important;
  --line:var(--nvw-line) !important;
  --glass:rgba(240,238,231,.055) !important;
  --r:5px !important;
}
body[data-nvw-family="headquarters"] .top{
  background:rgba(5,7,10,.93) !important;
  border-bottom:1px solid rgba(231,184,90,.24) !important;
  box-shadow:0 9px 30px rgba(0,0,0,.23);
}
body[data-nvw-family="headquarters"] .navwrap{
  min-height:68px;
}
body[data-nvw-family="headquarters"] .brand{
  position:relative;
  padding-left:2px;
}
body[data-nvw-family="headquarters"] .brand b{
  font-family:var(--nvw-institutional-font) !important;
  text-transform:uppercase;
  letter-spacing:.035em;
}
body[data-nvw-family="headquarters"] .brand span{
  font-family:var(--nvw-mono);
  text-transform:uppercase;
  letter-spacing:.08em;
}
body[data-nvw-family="headquarters"] .seal{
  border-radius:2px !important;
  clip-path:polygon(15% 0,85% 0,100% 15%,100% 85%,85% 100%,15% 100%,0 85%,0 15%);
  background:
    linear-gradient(135deg,rgba(255,217,131,.98),rgba(231,184,90,.72)) !important;
  border:1px solid rgba(255,255,255,.35);
  box-shadow:0 0 0 4px rgba(231,184,90,.08),0 13px 35px rgba(0,0,0,.36) !important;
  font-family:var(--nvw-mono);
}
body[data-nvw-family="headquarters"] .nav a{
  border-radius:2px !important;
  font-family:var(--nvw-mono);
  font-size:11px !important;
  letter-spacing:.055em;
  text-transform:uppercase;
}
body[data-nvw-family="headquarters"] .nav a:hover{
  background:rgba(231,184,90,.075) !important;
  border-color:rgba(231,184,90,.34) !important;
}
body[data-nvw-family="headquarters"] .nav .cta{
  background:linear-gradient(135deg,var(--nvw-amber-bright),var(--nvw-amber)) !important;
  color:#15100a !important;
  border-color:transparent !important;
}
body[data-nvw-family="headquarters"] .mobileJump{
  border-radius:2px !important;
  font-family:var(--nvw-mono);
}
body[data-nvw-family="headquarters"] .heroCard,
body[data-nvw-family="headquarters"] .panel,
body[data-nvw-family="headquarters"] .card,
body[data-nvw-family="headquarters"] .worldCard,
body[data-nvw-family="headquarters"] [class*="Card"]{
  border-radius:5px !important;
  border-color:rgba(240,238,231,.16) !important;
  background:
    linear-gradient(135deg,rgba(231,184,90,.055),transparent 25%),
    linear-gradient(180deg,rgba(240,238,231,.075),rgba(240,238,231,.025)) !important;
  box-shadow:0 24px 80px rgba(0,0,0,.34) !important;
}
body[data-nvw-family="headquarters"] .heroCard,
body[data-nvw-family="headquarters"] .panel,
body[data-nvw-family="headquarters"] .card,
body[data-nvw-family="headquarters"] .worldCard{
  position:relative;
}
body[data-nvw-family="headquarters"] .heroCard::before,
body[data-nvw-family="headquarters"] .panel::before,
body[data-nvw-family="headquarters"] .card::before,
body[data-nvw-family="headquarters"] .worldCard::before{
  content:"";
  position:absolute;
  top:-1px;
  left:-1px;
  width:22px;
  height:22px;
  border-top:1px solid rgba(255,217,131,.68);
  border-left:1px solid rgba(255,217,131,.68);
  pointer-events:none;
}
body[data-nvw-family="headquarters"] .btn,
body[data-nvw-family="headquarters"] button,
body[data-nvw-family="headquarters"] input,
body[data-nvw-family="headquarters"] textarea,
body[data-nvw-family="headquarters"] select{
  border-radius:2px !important;
}
body[data-nvw-family="headquarters"] .btn{
  font-family:var(--nvw-mono);
  text-transform:uppercase;
  letter-spacing:.045em;
  font-size:12px;
}
body[data-nvw-family="headquarters"] section{
  scroll-margin-top:92px;
}
body[data-nvw-family="headquarters"] footer{
  border-top:1px solid rgba(231,184,90,.22) !important;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.18));
}

/* Homepage command-center emphasis */
body[data-nvw-page="home"] .heroCard{
  border-left:3px solid var(--nvw-crimson) !important;
}
body[data-nvw-page="home"] .heroCard::after{
  border-radius:0 !important;
  opacity:.7;
}
body[data-nvw-page="home"] h1{
  text-transform:uppercase;
  letter-spacing:-.045em !important;
}
body[data-nvw-page="home"] .heroGrid::after{
  content:"DIRECTORATE // PUBLIC ACCESS NODE";
  position:absolute;
  right:18px;
  bottom:2px;
  color:rgba(240,238,231,.34);
  font:700 9px/1 var(--nvw-mono);
  letter-spacing:.14em;
  pointer-events:none;
}
body[data-nvw-page="home"] .heroGrid{position:relative}

/* Editorial dossier system */
body[data-nvw-family="editorial"]{
  --gold:var(--nvw-amber) !important;
  --gold2:var(--nvw-amber-bright) !important;
  --ink:var(--nvw-paper) !important;
  --muted:#c3c6c8 !important;
  --line:var(--nvw-line) !important;
  --glass:rgba(240,238,231,.055) !important;
  --r:4px !important;
}
body[data-nvw-family="editorial"] .wrap{position:relative}
body[data-nvw-family="editorial"] .top{
  padding-bottom:18px;
  border-bottom:1px solid rgba(231,184,90,.22);
}
body[data-nvw-family="editorial"] .brand{
  font-family:var(--nvw-institutional-font) !important;
  text-transform:uppercase;
  letter-spacing:.05em;
}
body[data-nvw-family="editorial"] .hero,
body[data-nvw-family="editorial"] .card,
body[data-nvw-family="editorial"] article,
body[data-nvw-family="editorial"] .panel{
  border-radius:4px !important;
  border-color:rgba(240,238,231,.16) !important;
  background:linear-gradient(180deg,rgba(240,238,231,.065),rgba(240,238,231,.025)) !important;
  box-shadow:0 22px 72px rgba(0,0,0,.31) !important;
}
body[data-nvw-family="editorial"] .btn,
body[data-nvw-family="editorial"] button{
  border-radius:2px !important;
  font-family:var(--nvw-mono);
  text-transform:uppercase;
  letter-spacing:.04em;
}
body[data-nvw-family="editorial"] h1{
  text-wrap:balance;
}
body[data-nvw-family="editorial"] article{
  position:relative;
}
body[data-nvw-family="editorial"] article::before{
  content:"PUBLIC RELEASE // OPEN RESEARCH DESK";
  display:block;
  margin-bottom:18px;
  color:var(--nvw-amber);
  font:800 10px/1.4 var(--nvw-mono);
  letter-spacing:.15em;
}

/* Research notebook: evidence-record atmosphere */
body[data-nvw-family="research"]{
  --gold:var(--nvw-amber) !important;
  --gold2:var(--nvw-amber-bright) !important;
  --ink:var(--nvw-paper) !important;
  --muted:#c7c7c1 !important;
  --soft:#9ea7b0 !important;
  --line:var(--nvw-line) !important;
  --glass:rgba(240,238,231,.05) !important;
  --r:3px !important;
}
body[data-nvw-family="research"] .top,
body[data-nvw-family="research"] header{
  border-bottom-color:rgba(231,184,90,.22) !important;
}
body[data-nvw-family="research"] .card,
body[data-nvw-family="research"] .panel,
body[data-nvw-family="research"] .hero,
body[data-nvw-family="research"] article,
body[data-nvw-family="research"] .entry{
  border-radius:3px !important;
  border-color:rgba(240,238,231,.17) !important;
  box-shadow:0 22px 72px rgba(0,0,0,.32) !important;
}
body[data-nvw-family="research"] .btn,
body[data-nvw-family="research"] button{
  border-radius:2px !important;
  font-family:var(--nvw-mono);
  text-transform:uppercase;
  letter-spacing:.04em;
}
body[data-nvw-family="research"] main::before{
  content:"ACCESSIBLE HUMAN CAPACITY STUDY // PUBLIC RESEARCH RECORD";
  display:block;
  width:min(1180px,calc(100% - 36px));
  margin:22px auto 0;
  padding:10px 0;
  border-bottom:1px solid rgba(231,184,90,.22);
  color:var(--nvw-amber);
  font:800 10px/1.4 var(--nvw-mono);
  letter-spacing:.14em;
}

/* Living Manuscript Vault: protect the reading room */
body[data-nvw-family="manuscript"] .nvw-secure-strip{
  background:#090b0e;
  border-bottom-color:rgba(231,184,90,.22);
  color:#c9c8c1;
}
body[data-nvw-family="manuscript"] .nvw-secure-strip::before{
  background:var(--nvw-amber);
  box-shadow:0 0 14px rgba(231,184,90,.48);
}
body[data-nvw-family="manuscript"] .nvw-secure-strip::after{content:"ARCHIVE"}
body[data-nvw-family="manuscript"] header,
body[data-nvw-family="manuscript"] .top,
body[data-nvw-family="manuscript"] nav{
  border-bottom-color:rgba(231,184,90,.18) !important;
}
body[data-nvw-family="manuscript"] .card,
body[data-nvw-family="manuscript"] .panel,
body[data-nvw-family="manuscript"] .door,
body[data-nvw-family="manuscript"] article{
  border-color:rgba(231,184,90,.17) !important;
}
body[data-nvw-family="manuscript"] .btn,
body[data-nvw-family="manuscript"] button{
  border-radius:3px !important;
}

/* Restricted development programs */
body[data-nvw-family="restricted"]{
  --gold:var(--nvw-amber) !important;
  --line:var(--nvw-line) !important;
  --radius:5px !important;
}
body[data-nvw-family="restricted"] .nvw-secure-strip{
  border-bottom-color:rgba(211,91,102,.42);
  background:linear-gradient(90deg,rgba(159,47,60,.30),#080b0f 34%,#080b0f 66%,rgba(159,47,60,.22));
}
body[data-nvw-family="restricted"] .nvw-secure-strip::after{content:"RESTRICTED";color:#f18b94}
body[data-nvw-family="restricted"] .language-card,
body[data-nvw-family="restricted"] .letter-card,
body[data-nvw-family="restricted"] .panel,
body[data-nvw-family="restricted"] .card,
body[data-nvw-family="restricted"] .join-card,
body[data-nvw-family="restricted"] .phone-shell,
body[data-nvw-family="restricted"] .screen{
  border-radius:5px !important;
}
body[data-nvw-family="restricted"] button,
body[data-nvw-family="restricted"] .btn,
body[data-nvw-family="restricted"] input,
body[data-nvw-family="restricted"] textarea,
body[data-nvw-family="restricted"] select{
  border-radius:2px !important;
}
body[data-nvw-family="restricted"] header{
  border-bottom-color:rgba(211,91,102,.22) !important;
}

/* Utility and legal records remain calm */
body[data-nvw-family="utility"] .card{
  border-radius:4px !important;
  border-color:rgba(240,238,231,.18) !important;
  box-shadow:0 24px 70px rgba(0,0,0,.30);
}
body[data-nvw-family="utility"] .badge{
  border-radius:2px !important;
  font-family:var(--nvw-mono);
  text-transform:uppercase;
  letter-spacing:.04em;
}

/* Protected experiences: only an institutional perimeter */
body[data-nvw-family="experience"]{
  box-shadow:inset 0 0 0 1px rgba(231,184,90,.12);
}
body[data-nvw-family="experience"]::selection{
  background:rgba(231,184,90,.32);
}

/* Keyboard and accessibility */
.nvw-secure-strip:focus-visible,
.nvw-secure-plate:focus-visible{outline:2px solid var(--nvw-amber-bright);outline-offset:2px}
body[data-nvw-family] a:focus-visible,
body[data-nvw-family] button:focus-visible,
body[data-nvw-family] input:focus-visible,
body[data-nvw-family] textarea:focus-visible,
body[data-nvw-family] select:focus-visible{
  outline:2px solid var(--nvw-amber-bright) !important;
  outline-offset:3px !important;
}

@media(max-width:760px){
  .nvw-secure-strip{
    justify-content:flex-start;
    min-height:35px;
    padding:8px 48px 7px 12px;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    font-size:8px;
    letter-spacing:.105em;
  }
  .nvw-secure-strip::after{right:10px;font-size:8px}
  .nvw-secure-plate{
    left:8px;
    right:8px;
    top:auto;
    bottom:8px;
    transform:none;
    writing-mode:horizontal-tb;
    min-height:0;
    max-height:none;
    padding:6px 9px;
    border:1px solid rgba(231,184,90,.30);
    justify-content:flex-start;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    font-size:7px;
    opacity:.82;
  }
  .nvw-secure-plate::before{margin:0 8px 0 0}
  body[data-nvw-family="headquarters"] .navwrap{min-height:60px}
  body[data-nvw-family="headquarters"] .heroCard,
  body[data-nvw-family="headquarters"] .panel,
  body[data-nvw-family="headquarters"] .card,
  body[data-nvw-family="headquarters"] .worldCard{
    border-radius:4px !important;
  }
}

@media(max-width:420px){
  .nvw-secure-plate{display:none}
  .nvw-secure-strip::before{width:5px;height:5px;flex-basis:5px}
}

@media(prefers-reduced-motion:reduce){
  .nvw-secure-strip::before,
  .nvw-secure-plate::before{box-shadow:none}
}

@media print{
  .nvw-secure-strip,.nvw-secure-plate{display:none!important}
  body[data-nvw-family]{background:#fff!important;color:#111!important}
}

/* Final readability and compact-mobile calibration */
body[data-nvw-family="editorial"] .deck{
  color:#bfc4c7 !important;
}
body[data-nvw-family="editorial"] .byline,
body[data-nvw-family="editorial"] .soft-note,
body[data-nvw-family="editorial"] .footer-byline{
  color:#9fa8ae !important;
}

body[data-nvw-family="research"] .banner,
body[data-nvw-family="research"] .entry-meta > div,
body[data-nvw-family="research"] .integrity{
  background:linear-gradient(180deg,rgba(240,238,231,.075),rgba(240,238,231,.035)) !important;
  border-color:rgba(231,184,90,.20) !important;
}
body[data-nvw-family="research"] .banner-item strong,
body[data-nvw-family="research"] .entry-meta strong{
  color:#ecebe5 !important;
}
body[data-nvw-family="research"] .deck,
body[data-nvw-family="research"] p,
body[data-nvw-family="research"] li,
body[data-nvw-family="research"] .status-line{
  color:#c8c8c2 !important;
}
body[data-nvw-family="research"] .question{
  color:#e5e1d7 !important;
}
body[data-nvw-family="research"] .explanation-label,
body[data-nvw-family="research"] .banner-item span,
body[data-nvw-family="research"] .entry-meta span{
  color:#c7a45f !important;
}
body[data-nvw-family="research"] .nav,
body[data-nvw-family="research"] .entry-nav{
  color:#aeb5bd !important;
}

@media(max-width:760px){
  .nvw-secure-strip{
    font-size:0;
    gap:9px;
    justify-content:flex-start;
  }
  .nvw-secure-strip::after{
    content:"NVW // PUBLIC CLEARANCE";
    position:static;
    color:#d9dde0;
    font:800 8px/1.2 var(--nvw-mono);
    letter-spacing:.12em;
  }
  body[data-nvw-family="editorial"] .nvw-secure-strip::after{content:"NVW // PUBLIC RELEASE"}
  body[data-nvw-family="research"] .nvw-secure-strip::after{content:"NVW // RESEARCH RECORD"}
  body[data-nvw-family="manuscript"] .nvw-secure-strip::after{content:"NVW // MANUSCRIPT ARCHIVE"}
  body[data-nvw-family="restricted"] .nvw-secure-strip::after{content:"NVW // RESTRICTED ACCESS";color:#ef9ba2}
  body[data-nvw-family="utility"] .nvw-secure-strip::after{content:"NVW // SYSTEM RECORD"}
}
