/* ==========================================================================
   SZM NEXUS — Site-wide V2.0 theme layer  (assets/site-v2.css)
   --------------------------------------------------------------------------
   Goal: make every page that is NOT the homepage read as the same product as
   the V2.0 cover — same palette, same typography, same component language.

   Scope: every rule is prefixed with `body:not(.page-home)`, so index.html
   (which carries <body class="page-home">) is completely untouched by this
   file. index.html does not even link it. No markup, no script and no backend
   logic is changed by this stylesheet — it only re-skins existing classes.

   Loaded AFTER assets/styles.css, so equal-specificity rules win by order.

   Palette (identical tokens to home-v2.css)
     Deep Navy      trust, global orientation
     Electric Blue  technology and innovation
     Emerald Green  industrial growth
     Warm Gold      investment opportunity
     White / Light  premium restraint
   ========================================================================== */

/* ---------- 1. tokens: re-point the existing variables ------------------- */
/* styles.css is written almost entirely against these custom properties, so
   redefining them here re-skins a large part of the site in one move. */
body:not(.page-home){
  --ink:#0B1724;
  --ink-2:#243243;
  --muted:#5F7189;
  --muted-2:#8FA3BC;
  --paper:#F7F9FC;
  --paper-2:#F1F4F9;
  --white:#ffffff;
  --navy:#040B15;
  --navy-2:#0A1A2E;
  --blue:#1E63D6;
  --blue-2:#2E7DF7;
  --cyan:#4C9BFF;
  --sand:#D9A441;
  --line:#E4E9F1;
  --line-2:#EDF1F7;
  --good:#12A67A;
  --warn:#C08C2E;
  --shadow:0 18px 60px rgba(4,11,21,.08);
  --shadow-soft:0 10px 30px rgba(4,11,21,.06);
  --sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  /* the cover is sans-set; drop the Georgia display face across inner pages */
  --serif:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;

  /* V2 palette */
  --nv-950:#040B15; --nv-900:#071120; --nv-850:#091729; --nv-800:#0A1A2E; --nv-700:#102A45;
  --el-700:#1A56C4; --el-600:#1E63D6; --el-500:#2E7DF7; --el-400:#4C9BFF; --el-200:#9CC6FF;
  --em-600:#0E8A66; --em-500:#12A67A; --em-400:#1FBF8F;
  --gd-600:#C08C2E; --gd-500:#D9A441; --gd-400:#F0C46B;
  --mist-50:#F7F9FC; --mist-100:#F1F4F9; --mist-200:#E4E9F1; --mist-300:#CFD9E6;
  --mist-400:#8FA3BC; --mist-500:#5F7189; --ink-900:#0B1724;
  --r-xl:24px; --r-lg:18px; --r-md:13px; --r-pill:999px;
}

/* ---------- 2. canvas ---------------------------------------------------- */
body:not(.page-home){
  background:#F7F9FC;
  background-image:none;
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
body:not(.page-home):before{display:none}

/* ---------- 3. masthead (identical treatment to the cover) --------------- */
body:not(.page-home) .topbar{
  background:var(--nv-950);
  color:#8FA3BC;
  border-bottom:1px solid rgba(255,255,255,.05);
}
body:not(.page-home) .site-header{
  position:sticky;top:0;z-index:60;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:13px max(4vw,24px);
  background:rgba(7,17,32,.9);
  border-bottom:1px solid rgba(255,255,255,.07);
  backdrop-filter:blur(18px) saturate(150%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
}
body:not(.page-home) .brand{gap:12px;letter-spacing:0}
body:not(.page-home) .brand-mark{
  width:38px;height:38px;border-radius:11px;
  background:linear-gradient(140deg,#4C9BFF,#1E63D6 62%,#0B3FA8);
  border:0;color:#fff;font-size:16px;font-weight:900;letter-spacing:0;
  box-shadow:0 8px 20px rgba(46,125,247,.34);
}
body:not(.page-home) .brand-word{
  font-size:17px;font-weight:800;letter-spacing:.17em;color:#fff;line-height:1;
}
body:not(.page-home) .nav{
  gap:22px;font-size:12.5px;font-weight:600;
  text-transform:none;letter-spacing:0;
}
body:not(.page-home) .nav a{color:rgba(226,236,248,.75);font-size:12.5px;font-weight:600}
body:not(.page-home) .nav a:hover,
body:not(.page-home) .nav a.active{color:#fff}
body:not(.page-home) .nav a:not(.nav-cta):after{
  bottom:-6px;height:1.5px;background:linear-gradient(90deg,var(--el-400),var(--em-400));
}
/* platform.js rewrites #accountNav's className, so key the pill on the class
   it sets (nav-cta) and the signed-out state on the bare id. */
body:not(.page-home) .nav .nav-cta,
body:not(.page-home) .nav #accountNav.nav-cta{
  padding:10px 20px;border-radius:var(--r-pill);border:1px solid transparent;
  background:linear-gradient(135deg,#4090FF,#1E63D6);
  color:#fff!important;font-weight:700;font-size:12.5px;letter-spacing:0;
  box-shadow:0 8px 20px rgba(46,125,247,.3);
  transition:transform .2s ease,box-shadow .2s ease;
}
body:not(.page-home) .nav .nav-cta:hover,
body:not(.page-home) .nav #accountNav.nav-cta:hover{
  transform:translateY(-1px);box-shadow:0 12px 26px rgba(46,125,247,.44);color:#fff!important;
}
body:not(.page-home) .nav .nav-cta:after,
body:not(.page-home) .nav #accountNav.nav-cta:after{display:none}

/* ---------- 4. generic type --------------------------------------------- */
body:not(.page-home) h1,
body:not(.page-home) h2,
body:not(.page-home) h3,
body:not(.page-home) h4{
  font-family:var(--sans);
  color:var(--ink-900);
  letter-spacing:-.025em;
}
body:not(.page-home) p,body:not(.page-home) li{color:#44546A}
body:not(.page-home) .eyebrow{
  font-size:10px;font-weight:800;letter-spacing:.2em;
  color:var(--el-600);text-transform:uppercase;margin-bottom:10px;
}
body:not(.page-home) .eyebrow.light{color:var(--el-200)}
body:not(.page-home) .text-link{color:var(--el-600);font-weight:800;letter-spacing:.1em}
body:not(.page-home) .text-link:hover{color:var(--em-600)}
body:not(.page-home) .muted,body:not(.page-home) .muted-small{color:var(--mist-500)}
body:not(.page-home) .note{color:var(--mist-400)}
body:not(.page-home) .divider{background:var(--mist-200)}
body:not(.page-home) .lead-block{color:var(--ink-2)}
body:not(.page-home) .clean-list li{color:#44546A}
body:not(.page-home) .clean-list strong{color:var(--ink-900)}

/* ---------- 5. page hero: the cover treatment, applied to every subpage --- */
body:not(.page-home) .page-main{padding:44px 0 88px}
body:not(.page-home) .page-title{
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;flex-wrap:wrap;align-items:flex-end;gap:26px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:var(--r-xl);
  padding:46px 44px 44px;
  margin-bottom:40px;
  background:
    radial-gradient(105% 130% at 6% 0%,rgba(46,125,247,.30),transparent 58%),
    radial-gradient(90% 120% at 92% 100%,rgba(18,166,122,.22),transparent 58%),
    var(--nv-900);
  box-shadow:0 30px 70px rgba(4,11,21,.24);
}
body:not(.page-home) .page-title:before{
  content:"";position:absolute;left:0;top:0;width:100%;height:3px;z-index:3;
  background:linear-gradient(90deg,var(--el-500),var(--em-500) 52%,var(--gd-500));
}
body:not(.page-home) .page-title:after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:52px 52px;
  mask-image:radial-gradient(120% 130% at 100% 0%,#000 8%,transparent 62%);
  -webkit-mask-image:radial-gradient(120% 130% at 100% 0%,#000 8%,transparent 62%);
}
body:not(.page-home) .page-title>div{position:relative;z-index:2;flex:1 1 560px;min-width:0}
body:not(.page-home) .page-title>.btn,
body:not(.page-home) .page-title>.title-note{position:relative;z-index:2}
body:not(.page-home) .page-title h1{
  font-size:clamp(32px,4.3vw,56px);font-weight:850;letter-spacing:-.035em;
  line-height:1.03;color:#fff;margin:0 0 16px;max-width:20ch;
}
body:not(.page-home) .page-title p{
  color:rgba(219,231,247,.78);font-size:16px;line-height:1.7;
  max-width:74ch;margin:0;
}
body:not(.page-home) .page-title .eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  padding:7px 15px;border-radius:var(--r-pill);
  background:rgba(76,155,255,.1);border:1px solid rgba(76,155,255,.32);
  color:var(--el-200)!important;font-size:10.5px;font-weight:800;
  letter-spacing:.2em;margin-bottom:22px;
}
body:not(.page-home) .page-title .eyebrow:before{
  content:"";width:6px;height:6px;border-radius:50%;background:var(--em-400);
  box-shadow:0 0 0 4px rgba(31,191,143,.18);
}
body:not(.page-home) .page-title .title-note{
  display:grid;gap:4px;padding:14px 18px;border-radius:var(--r-md);
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);
}
body:not(.page-home) .page-title .title-note span{
  font-size:9.5px;font-weight:800;letter-spacing:.2em;color:var(--gd-400);
}
body:not(.page-home) .page-title .title-note strong{color:#fff;font-size:14px;font-weight:750}

/* admin keeps its own hero markup — give it the same treatment */
body:not(.page-home) .admin-shell{padding-top:44px;padding-bottom:88px}
body:not(.page-home) .admin-hero{
  align-items:center;margin-bottom:40px;
  border:1px solid rgba(255,255,255,.07);border-radius:var(--r-xl);
  padding:46px 44px 44px;
  background:
    radial-gradient(105% 130% at 6% 0%,rgba(46,125,247,.30),transparent 58%),
    radial-gradient(90% 120% at 92% 100%,rgba(18,166,122,.22),transparent 58%),
    var(--nv-900);
  box-shadow:0 30px 70px rgba(4,11,21,.24);
}
body:not(.page-home) .admin-kicker{color:var(--el-200);letter-spacing:.2em;font-weight:800}
body:not(.page-home) .admin-title{
  font-family:var(--sans);font-weight:850;letter-spacing:-.035em;
  font-size:clamp(32px,4.3vw,56px);line-height:1.03;color:#fff;
}
body:not(.page-home) .admin-subtitle{color:rgba(219,231,247,.78)}
body:not(.page-home) .admin-badge{
  border-radius:var(--r-pill);border-color:rgba(255,255,255,.2);
  background:rgba(255,255,255,.08);color:#fff;
}

/* Pages whose hero was bare markup (404, cloud-launch) have been wrapped in a
   real .page-title container in their markup, so no selector fallback is
   needed here. Adding one would risk white text on a light background. */

/* ---------- 6. section scaffolding -------------------------------------- */
body:not(.page-home) .section-heading{
  border-bottom:0;padding-bottom:0;margin-bottom:32px;align-items:flex-end;
}
body:not(.page-home) .section-heading h2{
  font-family:var(--sans);font-size:clamp(24px,3vw,36px);font-weight:800;
  letter-spacing:-.03em;color:var(--ink-900);
}
body:not(.page-home) .title-note{display:grid;gap:3px}
body:not(.page-home) .title-note span{
  font-size:9.5px;font-weight:800;letter-spacing:.2em;color:var(--el-600);
}
body:not(.page-home) .title-note strong{font-size:14.5px;font-weight:750;color:var(--ink-900)}
body:not(.page-home) .section-block h2{
  font-family:var(--sans);font-weight:800;letter-spacing:-.028em;
  font-size:clamp(21px,2.4vw,28px);color:var(--ink-900);
}
body:not(.page-home) .section-block p,
body:not(.page-home) .section-block li{color:#44546A}

/* ---------- 7. buttons --------------------------------------------------- */
body:not(.page-home) .btn{
  border-radius:var(--r-pill);padding:13px 22px;
  font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease,color .2s ease;
}
body:not(.page-home) .btn-primary,
body:not(.page-home) .btn-dark{
  background:linear-gradient(135deg,#3D8BFF,#1E63D6);border-color:transparent;color:#fff;
  box-shadow:0 12px 26px rgba(46,125,247,.26);
}
body:not(.page-home) .btn-primary:hover,
body:not(.page-home) .btn-dark:hover{
  transform:translateY(-2px);box-shadow:0 18px 36px rgba(46,125,247,.38);color:#fff;
}
body:not(.page-home) .btn-outline{
  background:#fff;border-color:var(--mist-300);color:var(--ink-900);
}
body:not(.page-home) .btn-outline:hover{
  border-color:var(--el-500);color:var(--el-600);
  box-shadow:0 10px 24px rgba(46,125,247,.16);transform:translateY(-2px);
}
body:not(.page-home) .btn-light{background:#fff;border-color:#fff;color:var(--ink-900)}
/* outline / dark buttons sitting on navy panels need the light treatment */
body:not(.page-home) .dark-panel .btn-outline,
body:not(.page-home) .submit-banner .btn-outline,
body:not(.page-home) .page-title .btn-outline{
  background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.34);color:#fff;
}
body:not(.page-home) .dark-panel .btn-outline:hover,
body:not(.page-home) .submit-banner .btn-outline:hover,
body:not(.page-home) .page-title .btn-outline:hover{
  background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.62);color:#fff;
}
body:not(.page-home) .profile-links{flex-wrap:wrap}

/* ---------- 8. cards & panels ------------------------------------------- */
body:not(.page-home) .panel{
  border:1px solid var(--mist-200);border-radius:var(--r-lg);
  background:#fff;box-shadow:0 12px 30px rgba(4,11,21,.05);
}
body:not(.page-home) .dark-panel{
  border:1px solid transparent;border-radius:var(--r-lg);
  background:
    radial-gradient(110% 130% at 88% 0%,rgba(46,125,247,.24),transparent 58%),
    radial-gradient(90% 120% at 0% 100%,rgba(18,166,122,.16),transparent 58%),
    var(--nv-800);
}
body:not(.page-home) .dark-panel h2{font-family:var(--sans);font-weight:800;letter-spacing:-.03em;color:#fff}
body:not(.page-home) .dark-panel p{color:rgba(198,215,235,.8)}
body:not(.page-home) .dark-panel .eyebrow.light{color:var(--el-200)}

body:not(.page-home) .card{
  position:relative;isolation:isolate;
  border:1px solid var(--mist-200);border-top:0;border-radius:var(--r-lg);
  padding:26px 24px 24px;background:#fff;
  box-shadow:0 12px 30px rgba(4,11,21,.05);
  transition:transform .28s cubic-bezier(.22,.61,.36,1),box-shadow .28s ease,border-color .28s ease;
}
body:not(.page-home) .card:before{
  content:"";position:absolute;left:0;top:0;width:100%;height:3px;z-index:2;
  border-radius:var(--r-lg) var(--r-lg) 0 0;
  background:linear-gradient(90deg,var(--el-500),var(--em-500));
}
body:not(.page-home) .card:hover{
  transform:translateY(-6px);box-shadow:0 26px 56px rgba(4,11,21,.14);border-color:transparent;
}
body:not(.page-home) .card h3{
  font-family:var(--sans);font-size:20px;font-weight:750;letter-spacing:-.022em;color:var(--ink-900);
}
body:not(.page-home) .card p{color:var(--mist-500)}

body:not(.page-home) .case-card{
  position:relative;isolation:isolate;
  border:1px solid var(--mist-200);border-top:0;border-radius:var(--r-lg);
  padding:26px 24px 24px;background:#fff;
  box-shadow:0 12px 30px rgba(4,11,21,.05);
  transition:transform .28s cubic-bezier(.22,.61,.36,1),box-shadow .28s ease;
}
body:not(.page-home) .case-card:before{
  content:"";position:absolute;left:0;top:0;width:100%;height:3px;
  border-radius:var(--r-lg) var(--r-lg) 0 0;
  background:linear-gradient(90deg,var(--gd-500),var(--el-500));
}
body:not(.page-home) .case-card:hover{transform:translateY(-6px);box-shadow:0 26px 56px rgba(4,11,21,.14)}
body:not(.page-home) .case-card h3{
  font-family:var(--sans);font-weight:750;letter-spacing:-.022em;color:var(--ink-900);
}
body:not(.page-home) .case-card p{color:var(--mist-500)}
body:not(.page-home) .search-empty{
  padding:34px;border-radius:var(--r-lg);border:1px dashed var(--mist-300);
  color:var(--mist-500);text-align:center;background:#fff;
}

/* project detail (rendered by app.js) */
body:not(.page-home) .case-detail{
  border:1px solid var(--mist-200);border-radius:var(--r-xl);background:#fff;
  padding:40px;box-shadow:0 18px 44px rgba(4,11,21,.06);
}
body:not(.page-home) .case-detail h1{
  font-family:var(--sans);font-weight:850;letter-spacing:-.035em;
  font-size:clamp(30px,4vw,48px);line-height:1.05;color:var(--ink-900);
}

/* ---------- 9. pills / tags / status ------------------------------------ */
body:not(.page-home) .pill{
  border-radius:var(--r-pill);border-color:rgba(46,125,247,.24);
  background:rgba(46,125,247,.08);color:var(--el-600);
}
body:not(.page-home) .tag{
  border-radius:var(--r-pill);border-color:var(--mist-200);
  background:var(--mist-50);color:var(--mist-500);
}
body:not(.page-home) .status{color:var(--em-600)}
body:not(.page-home) .status-badge{
  border-radius:var(--r-pill);border-color:var(--mist-200);color:var(--mist-500);
}
body:not(.page-home) .status-pending{background:#FDF6E7;color:#8A631D;border-color:#F0DFB8}
body:not(.page-home) .status-approved{background:#EAF7F1;color:#0E7A58;border-color:#BFE7D5}
body:not(.page-home) .status-private{background:var(--mist-50);color:var(--mist-500)}
body:not(.page-home) .tag-cloud span,
body:not(.page-home) .resource-grid span{
  background:var(--mist-50);border:1px solid var(--mist-200);
  border-radius:var(--r-pill);color:var(--mist-500);padding:8px 13px;
}
body:not(.page-home) .account-chip{
  border-radius:var(--r-pill);border-color:var(--mist-200);background:#fff;
}

/* ---------- 10. notices ------------------------------------------------- */
body:not(.page-home) .notice{
  border-radius:var(--r-md);border-left:3px solid var(--el-500);
  background:rgba(46,125,247,.06);border-top:0;border-right:0;border-bottom:0;
  padding:14px 16px;
}
body:not(.page-home) .notice strong{color:var(--ink-900)}
body:not(.page-home) .notice-inline{
  border-radius:var(--r-md);border-left:3px solid var(--el-500);
  background:rgba(46,125,247,.06);color:var(--ink-2);
}
body:not(.page-home) .dark-panel .notice{
  background:rgba(255,255,255,.07);border-left-color:var(--gd-400);color:rgba(219,231,247,.86);
}
body:not(.page-home) .dark-panel .notice strong{color:#fff}
body:not(.page-home) .success-box{
  border-radius:var(--r-md);border-color:#BFE7D5;background:#EAF7F1;color:#0E7A58;
}
body:not(.page-home) .template-callout{
  border-radius:var(--r-md);border:1px solid var(--mist-200);
  border-left:3px solid var(--el-500);background:var(--mist-50);
}
body:not(.page-home) .template-callout strong{
  font-family:var(--sans);font-weight:800;color:var(--ink-900);
}
body:not(.page-home) .template-callout p{color:var(--mist-500)}

/* ---------- 11. metrics / numbers --------------------------------------- */
body:not(.page-home) .metric{
  border-radius:var(--r-md);background:var(--mist-50);border:1px solid var(--mist-200);
  padding:16px;
}
body:not(.page-home) .metric b{
  font-family:var(--sans);font-size:26px;font-weight:800;letter-spacing:-.03em;color:var(--ink-900);
}
body:not(.page-home) .metric span{color:var(--mist-400)}
body:not(.page-home) .metric-big{font-family:var(--sans);font-weight:800;color:var(--el-600)}
body:not(.page-home) .dark-panel .metric{
  background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.14);
}
body:not(.page-home) .dark-panel .metric b{color:#fff}
body:not(.page-home) .dark-panel .metric span{color:rgba(190,208,229,.72)}

/* ---------- 12. forms --------------------------------------------------- */
body:not(.page-home) .form-panel input,
body:not(.page-home) .form-panel select,
body:not(.page-home) .form-panel textarea,
body:not(.page-home) .filters input,
body:not(.page-home) .filters select,
body:not(.page-home) .admin-tools input,
body:not(.page-home) .admin-tools select,
body:not(.page-home) .review-card input,
body:not(.page-home) .review-card select,
body:not(.page-home) .review-card textarea{
  border:1px solid var(--mist-300);border-radius:10px;background:#fff;color:var(--ink);
  transition:border-color .18s ease,box-shadow .18s ease;
}
body:not(.page-home) .form-panel input:focus,
body:not(.page-home) .form-panel select:focus,
body:not(.page-home) .form-panel textarea:focus,
body:not(.page-home) .filters input:focus,
body:not(.page-home) .filters select:focus{
  border-color:var(--el-500);box-shadow:0 0 0 3px rgba(46,125,247,.16);
}
body:not(.page-home) .form-panel label{color:var(--ink-2);font-weight:700}
body:not(.page-home) .role-option{
  border:1px solid var(--mist-200);border-radius:var(--r-md);background:#fff;
}
body:not(.page-home) .disclosure-box{
  border:1px solid var(--mist-200);border-radius:var(--r-md);background:var(--mist-50);
}
body:not(.page-home) .disclosure-box span{color:var(--mist-500)}
body:not(.page-home) .process span{color:var(--mist-500)}
body:not(.page-home) .process b{color:var(--ink-900)}
body:not(.page-home) .auth-shell .panel{padding:34px}
body:not(.page-home) .auth-copy h1{
  font-family:var(--sans);font-weight:850;letter-spacing:-.035em;color:var(--ink-900);
}

/* ---------- 13. lists, tables, small surfaces --------------------------- */
body:not(.page-home) .table-row{border-top:1px solid var(--mist-200)}
body:not(.page-home) .table-list{border-radius:var(--r-md)}
body:not(.page-home) .connection-item{
  border:1px solid var(--mist-200);border-radius:var(--r-md);background:#fff;
}
body:not(.page-home) .profile-link-list{border-top:1px solid var(--mist-200)}
body:not(.page-home) .profile-link-list a{border-bottom:1px solid var(--line-2)}
body:not(.page-home) .profile-link-list span{color:var(--mist-400)}
body:not(.page-home) .profile-link-list b{color:var(--el-600);font-weight:700}
body:not(.page-home) .publication-links a{border-top:1px solid var(--mist-200)}
body:not(.page-home) .result-meta{color:var(--mist-400)}
body:not(.page-home) .security-note{color:var(--mist-400)}
body:not(.page-home) .file-list .tag{background:var(--mist-50)}

/* ---------- 14. events / timeline --------------------------------------- */
body:not(.page-home) .event-card{
  border-top:0;border:1px solid var(--mist-200);border-radius:var(--r-lg);
  background:#fff;box-shadow:0 12px 30px rgba(4,11,21,.05);
  transition:transform .28s cubic-bezier(.22,.61,.36,1),box-shadow .28s ease;
}
body:not(.page-home) .event-card:hover{transform:translateY(-4px);box-shadow:0 22px 48px rgba(4,11,21,.12)}
body:not(.page-home) .event-date{
  border:0;border-radius:var(--r-md);background:var(--nv-900);min-height:104px;
  box-shadow:0 12px 26px rgba(4,11,21,.18);
}
body:not(.page-home) .event-date strong{
  font-family:var(--sans);font-weight:800;color:#fff;letter-spacing:-.02em;
}
body:not(.page-home) .event-date span{color:var(--el-200)}
body:not(.page-home) .event-card h3{
  font-family:var(--sans);font-weight:800;letter-spacing:-.025em;color:var(--ink-900);
}
body:not(.page-home) .event-card p{color:var(--mist-500)}

/* ---------- 15. founder page -------------------------------------------- */
body:not(.page-home) .founder-portrait-wrap{
  border:1px solid var(--mist-200);border-radius:var(--r-xl);background:#fff;
  padding:12px;box-shadow:0 22px 54px rgba(4,11,21,.1);
}
body:not(.page-home) .founder-portrait{border-radius:var(--r-lg)}
body:not(.page-home) .portrait-caption{color:var(--mist-400)}
body:not(.page-home) .profile-intro h1{
  font-family:var(--sans);font-weight:850;letter-spacing:-.04em;color:var(--ink-900);
}
body:not(.page-home) .profile-role{color:var(--el-600)!important;font-weight:700}
body:not(.page-home) .profile-meta{
  border-top:1px solid var(--mist-200);color:var(--mist-400);
}
body:not(.page-home) .profile-meta span{border-right:1px solid var(--mist-200)}
body:not(.page-home) .career-timeline{
  border-top:0;border:1px solid var(--mist-200);border-radius:var(--r-lg);
  background:#fff;overflow:hidden;
}
body:not(.page-home) .career-item{border-bottom:1px solid var(--mist-200)}
body:not(.page-home) .career-item:last-child{border-bottom:0}
body:not(.page-home) .career-year{
  font-family:var(--sans);font-weight:800;color:var(--el-600);letter-spacing:-.01em;
}
body:not(.page-home) .career-item h3{
  font-family:var(--sans);font-weight:800;letter-spacing:-.025em;color:var(--ink-900);
}
body:not(.page-home) .career-org{color:var(--mist-500)}
body:not(.page-home) .edu-item{border-top:1px solid var(--mist-200)}
body:not(.page-home) .edu-item strong{font-family:var(--sans);font-weight:800;color:var(--ink-900)}
body:not(.page-home) .edu-item span{color:var(--mist-500)}
body:not(.page-home) .career-early{color:var(--mist-400)}
body:not(.page-home) .role-strip{
  border-top:1px solid var(--mist-200);border-bottom:1px solid var(--mist-200);
}
body:not(.page-home) .role-strip>div{
  border-right:1px solid var(--mist-200);background:var(--mist-50);
}
body:not(.page-home) .role-number{
  font-family:var(--sans);font-weight:800;color:var(--el-500);
}
body:not(.page-home) .role-strip strong{
  font-family:var(--sans);font-weight:800;letter-spacing:-.022em;color:var(--ink-900);
}
body:not(.page-home) .role-strip p{color:var(--mist-500)}
body:not(.page-home) .origin-grid{
  border-top:0;border:1px solid var(--mist-200);border-radius:var(--r-lg);overflow:hidden;
}
body:not(.page-home) .origin-copy{border-right:1px solid var(--mist-200);background:#fff}
body:not(.page-home) .origin-steps>div{
  border-right:1px solid var(--mist-200);background:var(--mist-50);
}
body:not(.page-home) .origin-steps span{color:var(--el-500)}
body:not(.page-home) .origin-steps strong{font-family:var(--sans);font-weight:800;color:var(--ink-900)}
body:not(.page-home) .origin-steps small{color:var(--mist-500)}
body:not(.page-home) .room-grid{
  border:1px solid var(--mist-200);background:var(--mist-200);border-radius:var(--r-lg);overflow:hidden;
}
body:not(.page-home) .room-step{background:#fff}
body:not(.page-home) .room-step span{font-family:var(--sans);font-weight:800;color:var(--el-500)}
body:not(.page-home) .room-step strong{font-family:var(--sans);font-weight:800;color:var(--ink-900)}
body:not(.page-home) .room-step p{color:var(--mist-500)}

/* ---------- 16. map page ------------------------------------------------ */
body:not(.page-home) .map-panel{
  border:1px solid var(--mist-200);border-radius:var(--r-lg);background:#fff;
  box-shadow:0 18px 44px rgba(4,11,21,.06);
}
body:not(.page-home) .usa-map{
  background:linear-gradient(135deg,#E7EDF5,#FAFBFD);
}
body:not(.page-home) .usa-map:after{border-color:var(--mist-300)}
body:not(.page-home) .state-bubble{
  border-radius:var(--r-pill);background:var(--nv-900);
  box-shadow:0 12px 26px rgba(4,11,21,.2);
}
body:not(.page-home) .state-bubble:hover{
  background:linear-gradient(135deg,#3D8BFF,#1E63D6);
}
body:not(.page-home) .map-side h2{
  font-family:var(--sans);font-weight:800;letter-spacing:-.03em;color:var(--ink-900);
}
body:not(.page-home) .map-drilldown{margin-top:22px;padding-top:20px;border-top:1px solid var(--mist-200)}
body:not(.page-home) .mini-map{
  border:1px solid var(--mist-200);border-radius:var(--r-md);
  background:linear-gradient(135deg,#E7EDF5,#FAFBFD);
}
body:not(.page-home) .mini-map:before{border-color:var(--mist-300)}
body:not(.page-home) .dot{
  border-color:rgba(11,23,36,.12);border-radius:var(--r-pill);color:var(--ink-900);
}

/* ---------- 17. intelligence page --------------------------------------- */
body:not(.page-home) .intel-card{
  border:1px solid var(--mist-200);border-radius:var(--r-lg);background:#fff;
  box-shadow:0 12px 30px rgba(4,11,21,.05);
}
body:not(.page-home) .intel-card h2{
  font-family:var(--sans);font-weight:800;letter-spacing:-.03em;color:var(--ink-900);
}
body:not(.page-home) .intel-card p{color:var(--mist-500)}
body:not(.page-home) .intel-matrix{
  border:1px solid var(--mist-200);background:var(--mist-200);border-radius:var(--r-md);overflow:hidden;
}
body:not(.page-home) .intel-matrix>div{background:var(--mist-50)}
body:not(.page-home) .intel-matrix b{font-family:var(--sans);font-weight:800;color:var(--ink-900)}
body:not(.page-home) .intel-matrix span{color:var(--mist-500)}
body:not(.page-home) .signal-table{
  border-top:0;border:1px solid var(--mist-200);border-radius:var(--r-lg);
  background:#fff;overflow:hidden;
}
body:not(.page-home) .signal-row{border-bottom:1px solid var(--line-2)}
body:not(.page-home) .signal-row:last-child{border-bottom:0}
body:not(.page-home) .signal-row.head{background:var(--mist-100);color:var(--mist-500)}
body:not(.page-home) .signal-row strong{
  font-family:var(--sans);font-weight:750;color:var(--ink-900);
}
/* the dark intel card + the submit banner are the page's "navy moments" */
body:not(.page-home) .intel-card.dark-signal{
  border-color:transparent;
  background:
    radial-gradient(110% 130% at 88% 0%,rgba(46,125,247,.24),transparent 58%),
    var(--nv-800);
}
body:not(.page-home) .intel-card.dark-signal h2{color:#fff}
body:not(.page-home) .intel-card.dark-signal p{color:rgba(198,215,235,.78)}
body:not(.page-home) .principle-stack{border-top-color:rgba(255,255,255,.18)}
body:not(.page-home) .principle-stack span{
  border-bottom-color:rgba(255,255,255,.18);color:#CFE0F5;
}
body:not(.page-home) .submit-banner{
  margin-top:72px;border:1px solid transparent;border-radius:var(--r-xl);
  background:
    radial-gradient(105% 130% at 8% 0%,rgba(46,125,247,.28),transparent 58%),
    radial-gradient(90% 120% at 94% 100%,rgba(18,166,122,.2),transparent 58%),
    var(--nv-900);
  box-shadow:0 30px 70px rgba(4,11,21,.24);
}
body:not(.page-home) .submit-banner h2{
  font-family:var(--sans);font-weight:850;letter-spacing:-.03em;color:#fff;
}
body:not(.page-home) .submit-banner p{color:rgba(207,222,240,.76)}
body:not(.page-home) .submit-banner .eyebrow{color:var(--el-200)}

/* ---------- 18. dashboard / admin --------------------------------------- */
body:not(.page-home) .dash-card{
  border:1px solid var(--mist-200);border-radius:var(--r-lg);background:#fff;
  box-shadow:0 12px 30px rgba(4,11,21,.05);
}
body:not(.page-home) .dash-card h3{
  font-family:var(--sans);font-weight:800;letter-spacing:-.025em;color:var(--ink-900);
}
body:not(.page-home) .admin-stat{
  border:1px solid var(--mist-200);border-radius:var(--r-md);background:#fff;
}
body:not(.page-home) .admin-stat .num{
  font-family:var(--sans);font-weight:850;letter-spacing:-.03em;color:var(--ink-900);
}
body:not(.page-home) .admin-stat .label{color:var(--mist-400)}
body:not(.page-home) .admin-panel{
  border:1px solid var(--mist-200);border-radius:var(--r-lg);background:#fff;overflow:hidden;
}
body:not(.page-home) .admin-panel-head{border-bottom:1px solid var(--mist-200)}
body:not(.page-home) .admin-panel-head h2{
  font-family:var(--sans);font-weight:800;letter-spacing:-.025em;color:var(--ink-900);
}
body:not(.page-home) .admin-tools{background:var(--mist-50);border-bottom:1px solid var(--mist-200)}
body:not(.page-home) .admin-table th{
  background:var(--mist-50);color:var(--mist-500);border-bottom:1px solid var(--mist-200);
}
body:not(.page-home) .admin-table td{border-bottom:1px solid var(--line-2);color:#44546A}
body:not(.page-home) .admin-table tr:hover td{background:var(--mist-50)}
body:not(.page-home) .review-card{border:0}

/* ---------- 19. legal pages --------------------------------------------- */
/* NOTE: do not redeclare .case-grid-detail's column count here. styles.css
   already collapses it to one column at <=980px, and any non-responsive
   override from this file would out-specify that media query and bring back
   the two-column grid on phones (verified overflow at 390px). */
body:not(.page-home) .legal-grid{gap:18px}

/* ---------- 20. footer -------------------------------------------------- */
body:not(.page-home) .site-footer{
  background:var(--nv-950);border-top:1px solid rgba(255,255,255,.07);margin-top:0;
  border-radius:0;
}
body:not(.page-home) .site-footer a{color:#B9CBE0}
body:not(.page-home) .site-footer a:hover{color:#fff}
body:not(.page-home) .site-footer strong{color:#fff;letter-spacing:.16em;font-weight:800}
body:not(.page-home) .site-footer span,
body:not(.page-home) .site-footer small{color:#8FA3BC}

/* ---------- 21. responsive ---------------------------------------------- */
@media(max-width:1100px){
  body:not(.page-home) .intelligence-grid,
  body:not(.page-home) .intelligence-grid-wide{grid-template-columns:1fr}
}
@media(max-width:980px){
  body:not(.page-home) .page-title{padding:36px 30px 34px}
  body:not(.page-home) .admin-hero{padding:36px 30px 34px}
  body:not(.page-home) .case-detail{padding:26px}
  body:not(.page-home) .auth-shell .panel{padding:26px}
  /* .section-heading is a flex row; the .title-note chip next to the heading
     cannot shrink below its own content width, so stack them before they
     start forcing horizontal overflow. */
  body:not(.page-home) .section-heading{
    flex-direction:column;align-items:flex-start;gap:14px;
  }
  body:not(.page-home) .title-note{width:100%;max-width:100%}
}
@media(max-width:680px){
  /* styles.css hides every .nav link that is not .nav-cta on phones. Keep the
     pill (Submit / My NEXUS) AND the trailing account link so the mobile
     header matches the cover — on several pages that link carries no id. */
  body:not(.page-home) .nav .nav-cta,
  body:not(.page-home) .nav #accountNav,
  body:not(.page-home) .nav a:last-child{display:inline-flex}
  body:not(.page-home) .nav .nav-cta{padding:9px 16px;font-size:11.5px}
  body:not(.page-home) .site-header{padding-inline:4vw}
  body:not(.page-home) .page-main{padding:26px 0 64px}
  body:not(.page-home) .page-title{
    padding:28px 22px 26px;border-radius:var(--r-lg);margin-bottom:28px;
  }
  body:not(.page-home) .page-title h1{font-size:clamp(26px,7.4vw,34px)}
  body:not(.page-home) .page-title p{font-size:14.5px}
  body:not(.page-home) .admin-hero{padding:28px 22px 26px;border-radius:var(--r-lg)}
  body:not(.page-home) .btn{width:100%;justify-content:center}
  body:not(.page-home) .page-title>.btn{width:100%}
  body:not(.page-home) .profile-links .btn,
  body:not(.page-home) .template-callout .btn{width:100%}
  body:not(.page-home) .event-date{min-height:78px}
  body:not(.page-home) .career-item{padding-left:18px;padding-right:18px}
}

/* ---------- 22. leftovers: hard-coded warm greys in styles.css ----------- */
/* styles.css still carries a handful of literal beige/grey hex values that no
   variable reaches. These are the ones that actually render on inner pages. */
body:not(.page-home) .kpi{
  border:1px solid var(--mist-200);border-radius:var(--r-md);background:var(--mist-50);
}
body:not(.page-home) .kpi b{
  font-family:var(--sans);font-weight:800;letter-spacing:-.025em;color:var(--ink-900);
  overflow-wrap:anywhere;
}
body:not(.page-home) .kpi span{color:var(--mist-400)}
/* The project-detail KPI row holds short values such as "Commercialization".
   Two 1fr tracks cannot shrink below that word, which pushed the whole panel
   past the viewport at 390px — collapse to one column on phones. */
@media(max-width:680px){
  body:not(.page-home) .kpi-grid{grid-template-columns:1fr}
}
body:not(.page-home) .notice p{color:#44546A}
body:not(.page-home) .map-preview{
  border-radius:var(--r-lg);background:linear-gradient(160deg,#fff,var(--mist-100));
}
body:not(.page-home) .signal-feature{
  border-color:var(--mist-200);border-radius:var(--r-lg);background:#fff;
  box-shadow:0 12px 30px rgba(4,11,21,.05);
}
body:not(.page-home) .feature-case:hover{background:var(--mist-50)}
body:not(.page-home) .case-index{color:var(--mist-400)}
body:not(.page-home) .diag-box{border-top-color:var(--mist-200)}
body:not(.page-home) .diag-box summary{color:var(--mist-400)}
body:not(.page-home) .diag-box pre{background:var(--nv-900);color:#DCE7F5;border-radius:10px}

/* admin console internals (internal page, kept on-brand for completeness) */
body:not(.page-home) .review-card h3{
  font-family:var(--sans);font-weight:800;color:var(--ink-900);letter-spacing:-.02em;
}
body:not(.page-home) .review-cell-title{color:var(--ink-900);font-weight:700}
body:not(.page-home) .review-cell-sub{color:var(--mist-400)}
body:not(.page-home) .review-meta .item{border-color:var(--mist-200)}
body:not(.page-home) .review-meta .item span{color:var(--mist-400)}
body:not(.page-home) .review-meta .item strong{color:var(--ink-900)}
body:not(.page-home) .review-note{border-color:var(--mist-300)}
body:not(.page-home) .admin-empty{color:var(--mist-500)}
body:not(.page-home) .audit-item{border-color:var(--mist-200)}
body:not(.page-home) .audit-item .when{color:var(--mist-400)}
body:not(.page-home) .audit-item .action{color:var(--ink-900)}
body:not(.page-home) .admin-btn{
  border-color:var(--mist-300);border-radius:var(--r-pill);color:var(--ink-900);
}
body:not(.page-home) .admin-btn:hover{background:var(--mist-50)}
body:not(.page-home) .admin-btn.primary{
  background:linear-gradient(135deg,#3D8BFF,#1E63D6);border-color:transparent;color:#fff;
}
body:not(.page-home) .admin-btn.warn{background:#FDF6E7;border-color:#E8C77B;color:#79550A}
body:not(.page-home) .admin-btn.danger{background:#FFF4F2;border-color:#E5B8AE;color:#7A3124}
body:not(.page-home) .verification-chip{
  border-color:var(--mist-200);border-radius:var(--r-pill);color:var(--mist-500);background:var(--mist-50);
}
body:not(.page-home) .verification-chip.featured{background:#FBF7EA;border-color:#E4D192;color:#6A581B}
body:not(.page-home) .verification-chip.verified{background:#EAF7F1;border-color:#BFE7D5;color:#0E7A58}
body:not(.page-home) .verification-chip.submitted{background:var(--mist-50);border-color:var(--mist-200)}
body:not(.page-home) code{
  background:var(--mist-100);border:1px solid var(--mist-200);border-radius:6px;
  padding:2px 6px;font-size:.9em;color:var(--el-700);
}
body:not(.page-home) pre{
  background:var(--nv-900);color:#DCE7F5;border-radius:var(--r-md);
  padding:16px 18px;overflow:auto;font-size:12.5px;line-height:1.6;
}
body:not(.page-home) pre code{background:transparent;border:0;padding:0;color:inherit;font-size:1em}

/* ---------- 23. founder hero: cover-identical first screen -------------- */
/* The founder page is reachable straight from the nav, so its first screen
   must read like the cover. Everything below the hero (overview panels,
   career timeline) deliberately stays light — that is the cover's own
   navy-hero -> light-sections rhythm. Only .profile-hero is used here, and
   only founder.html carries it. */
body:not(.page-home) .profile-hero,
body:not(.page-home) .profile-hero-rich{
  position:relative;isolation:isolate;overflow:hidden;
  align-items:start;gap:44px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:var(--r-xl);
  padding:46px 44px 44px;
  margin-bottom:34px;
  background:
    radial-gradient(105% 130% at 6% 0%,rgba(46,125,247,.30),transparent 58%),
    radial-gradient(90% 120% at 92% 100%,rgba(18,166,122,.22),transparent 58%),
    var(--nv-900);
  box-shadow:0 30px 70px rgba(4,11,21,.24);
}
body:not(.page-home) .profile-hero:before,
body:not(.page-home) .profile-hero-rich:before{
  content:"";position:absolute;left:0;top:0;width:100%;height:3px;z-index:3;
  background:linear-gradient(90deg,var(--el-500),var(--em-500) 52%,var(--gd-500));
}
body:not(.page-home) .profile-hero>*,
body:not(.page-home) .profile-hero-rich>*{position:relative;z-index:2}
body:not(.page-home) .profile-hero .eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  padding:7px 15px;border-radius:var(--r-pill);
  background:rgba(76,155,255,.10);border:1px solid rgba(76,155,255,.32);
  color:var(--el-200)!important;font-size:10.5px;font-weight:800;letter-spacing:.2em;
}
body:not(.page-home) .profile-hero .eyebrow:before{
  content:"";width:6px;height:6px;border-radius:50%;background:var(--em-400);
  box-shadow:0 0 0 4px rgba(31,191,143,.18);
}
body:not(.page-home) .profile-intro h1{color:#fff}
body:not(.page-home) .profile-role{color:var(--el-200)!important}
body:not(.page-home) .profile-intro p{color:rgba(219,231,247,.80)}
body:not(.page-home) .profile-intro strong{color:#fff}
body:not(.page-home) .portrait-caption{color:rgba(190,208,229,.72)}
body:not(.page-home) .profile-meta{color:rgba(190,208,229,.72);border-top-color:rgba(255,255,255,.14)}
body:not(.page-home) .profile-meta span{border-right-color:rgba(255,255,255,.14)}
body:not(.page-home) .profile-hero .metric,
body:not(.page-home) .profile-hero-rich .metric{
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);
}
body:not(.page-home) .profile-hero .metric b,
body:not(.page-home) .profile-hero-rich .metric b{color:#fff}
body:not(.page-home) .profile-hero .metric span,
body:not(.page-home) .profile-hero-rich .metric span{color:rgba(190,208,229,.72)}
body:not(.page-home) .profile-hero .btn-outline,
body:not(.page-home) .profile-hero-rich .btn-outline{
  background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.34);color:#fff;
}
body:not(.page-home) .profile-hero .btn-outline:hover,
body:not(.page-home) .profile-hero-rich .btn-outline:hover{
  background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.62);
}
@media(max-width:980px){
  body:not(.page-home) .profile-hero,
  body:not(.page-home) .profile-hero-rich{padding:36px 30px 34px;gap:34px}
}
@media(max-width:680px){
  body:not(.page-home) .profile-hero,
  body:not(.page-home) .profile-hero-rich{padding:28px 22px 26px;border-radius:var(--r-lg);gap:24px}
  body:not(.page-home) .profile-intro h1{font-size:clamp(30px,8.4vw,40px)}
}

/* ---------- 24. project detail: join the same card family -------------- */
/* .case-detail is injected by app.js on project.html only. It is a data
   detail card, not a landing screen, so it keeps the light card body but
   takes the gradient top bar and chip the other cards use. */
body:not(.page-home) .case-detail{position:relative;overflow:hidden}
body:not(.page-home) .case-detail:before{
  content:"";position:absolute;left:0;top:0;width:100%;height:3px;
  background:linear-gradient(90deg,var(--el-500),var(--em-500) 52%,var(--gd-500));
}
body:not(.page-home) .case-detail>.eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  padding:7px 15px;border-radius:var(--r-pill);
  background:rgba(46,125,247,.08);border:1px solid rgba(46,125,247,.24);
  color:var(--el-600)!important;font-size:10px;font-weight:800;letter-spacing:.2em;
}
