/* Sigma Trust — "Research Note" article design, applied to every report.
   Dark masthead (nav, breadcrumb, headline, KPI bar) + a light cream reading
   column for the prose, gold accent, Playfair / Inter / IBM Plex.
   Loaded last on each article so it re-skins the shared template without
   touching any article body markup. */

:root{
  --nt-bg:#050505; --nt-panel:#0c0e12; --nt-line:#2A2D31;
  --nt-gold:#F5A400; --nt-gold-dk:#C98700;
  --nt-cream:#faf9f5; --nt-ink:#16181b; --nt-muted:#8A8D91;
  --nt-green:#168A5A; --nt-red:#B3261E;
}

/* ---- page ---- */
html{background:var(--nt-bg)!important;}
body{background:var(--nt-bg)!important;color:#d7d8da!important;}
::selection{background:var(--nt-gold);color:var(--nt-bg);}

/* ---- nav (dark) ---- */
.nav{background:rgba(5,5,5,.86)!important;border-bottom:1px solid var(--nt-line)!important;backdrop-filter:saturate(160%) blur(14px);}
.nav-inner{max-width:1240px;}
.logo{color:#fff!important;}
.logo .sigma{color:var(--nt-gold)!important;}
.logo small{color:rgba(255,255,255,.6)!important;border-left-color:rgba(255,255,255,.3)!important;}
.nav-links a{color:rgba(255,255,255,.82)!important;}
.nav-links a:hover{color:var(--nt-gold)!important;}
.nav-cta{background:var(--nt-gold)!important;color:var(--nt-bg)!important;border-radius:4px;}
.nav-cta:hover{background:var(--nt-gold-dk)!important;}
.menu-btn span{background:#fff!important;}
.drawer{background:var(--nt-bg)!important;}
.drawer ul li{border-bottom-color:var(--nt-line)!important;}
.drawer ul li a{color:#fff!important;}
.drawer ul li a:hover{color:var(--nt-gold)!important;}
.drawer-meta,.drawer ul li a .num,.drawer-regions h4,.drawer-cta .secondary{color:var(--nt-muted)!important;}
.drawer-regions h4{border-top-color:var(--nt-line)!important;}
.drawer-cta{border-top-color:var(--nt-line)!important;}
.drawer-cta .primary{background:var(--nt-gold)!important;color:var(--nt-bg)!important;}

/* ---- breadcrumb (dark) ---- */
.crumbs{color:var(--nt-muted)!important;}
.crumbs a{color:var(--nt-muted)!important;}
.crumbs a:hover{color:var(--nt-gold)!important;}
.crumbs .here{color:var(--nt-gold)!important;}

/* ---- masthead / headline (dark) ---- */
.article-head{max-width:1240px;}
.article-cat{color:var(--nt-gold)!important;}
.article-cat::before{background:var(--nt-gold)!important;}
.article-title{color:#fff!important;font-weight:700!important;}
.article-title em{color:var(--nt-gold)!important;}
.article-deck{color:rgba(255,255,255,.74)!important;}
.article-meta{border-top-color:var(--nt-line)!important;}
.meta-item{color:var(--nt-muted)!important;}
.meta-edition{background:transparent!important;border-color:var(--nt-line)!important;color:#fff!important;}

/* ---- KPI bar (dark) ---- */
.lede-stats{border-top-color:var(--nt-line)!important;border-bottom-color:var(--nt-line)!important;}
.lede-stat{border-right-color:var(--nt-line)!important;}
.lede-stat-val{color:var(--nt-gold)!important;font-family:'Playfair Display',Georgia,serif!important;}
.lede-stat-label{color:var(--nt-muted)!important;}

/* ---- reading column: single editorial column on cream (Research Note std) ---- */
.article-body{background:var(--nt-cream);border:1px solid #ece6d8;border-radius:14px;
  padding:54px 60px!important;margin:48px auto 0!important;max-width:940px!important;
  grid-template-columns:1fr!important;gap:0!important;box-shadow:0 30px 70px rgba(0,0,0,.35);}
.prose{color:var(--nt-ink);min-width:0;}
.prose p{color:#2a2a26!important;text-align:justify;hyphens:auto;-webkit-hyphens:auto;}
/* drop cap on the opening paragraph, like the reference note */
.prose > section:first-of-type p:first-of-type::first-letter{
  float:left;font-family:'Playfair Display',Georgia,serif;font-weight:700;
  font-size:52px;line-height:.66;padding:6px 9px 0 0;color:var(--nt-bg);}
.prose p strong{color:var(--nt-ink)!important;}
/* root-template reports: flat .article-body > p (no .prose wrapper) get the same look */
.article-body > p{text-align:justify;hyphens:auto;-webkit-hyphens:auto;color:#2a2a26!important;}
.article-body > p.lede{color:var(--nt-ink)!important;}
.article-body > p:first-of-type::first-letter{
  float:left;font-family:'Playfair Display',Georgia,serif;font-weight:700;
  font-size:52px;line-height:.66;padding:6px 9px 0 0;color:var(--nt-bg);}
.section-num{color:var(--nt-gold-dk)!important;}
.section-title{color:var(--nt-ink)!important;font-weight:700!important;}
.section-sub{color:#6f6a5e!important;}
.prose h3,.prose h4{color:var(--nt-ink)!important;}

/* callouts / alerts inside the reading column */
.callout{background:#fff!important;border-left-color:var(--nt-gold)!important;}
.callout-label{color:var(--nt-gold-dk)!important;}
.callout p{color:#33312b!important;}
.desk-alert{background:#0c0e12!important;}
.desk-alert-label{color:var(--nt-gold)!important;}
.desk-alert-label::before{background:var(--nt-gold)!important;}

/* tables */
.data-table{background:#fff!important;border-color:#e7e1d2!important;}
.data-table caption{color:var(--nt-muted)!important;}
.data-table th{background:#f5f1e7!important;color:#6f6a5e!important;border-bottom-color:#e7e1d2!important;}
.data-table td{border-bottom-color:#efe9db!important;color:#2a2a26!important;}
.data-table td:first-child{color:var(--nt-ink)!important;}
.badge-up{background:#e3f3ea!important;color:var(--nt-green)!important;}
.badge-watch{background:#fbeecd!important;color:#8a5b00!important;}

/* score / stat grids */
.score-grid,.stat-grid{background:transparent!important;}
.score-col,.stat-card{background:#fff!important;border-color:#e7e1d2!important;}
.score-pillar,.stat-label{color:var(--nt-muted)!important;}
.score-val,.stat-value{color:var(--nt-ink)!important;font-family:'Playfair Display',Georgia,serif!important;}
.score-note,.stat-note{color:#55524a!important;}

/* scenario cards */
.scenario-card{background:#fff!important;border-color:#e7e1d2!important;}
.scenario-card.base{border-top-color:var(--nt-gold)!important;}
.scenario-card.up{border-top-color:var(--nt-green)!important;}
.scenario-card.stress{border-top-color:var(--nt-red)!important;}
.sc-label{color:var(--nt-muted)!important;}
.sc-prob{color:var(--nt-ink)!important;font-family:'Playfair Display',Georgia,serif!important;}
.sc-text{color:#33312b!important;}

/* pressure panel stays dark */
.pressure-wrap{background:#0c0e12!important;}

/* ---- appendix: stacks BELOW the prose, inside the cream column (no side rail) ---- */
.sidebar{position:static!important;top:auto!important;margin-top:42px;padding-top:30px;
  border-top:1px solid #e7e1d2;display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;align-items:start;}
.sidebar-block{background:#fff!important;border:1px solid #ece6d8!important;border-radius:12px;padding:18px 20px 8px;margin-bottom:0!important;}
.sidebar > .sb-title{grid-column:1/-1;margin-top:6px;}
.sb-title{color:var(--nt-gold-dk)!important;}
.sb-var{color:var(--nt-ink)!important;}
.sb-note{color:#6f6a5e!important;}
.related-block{grid-column:1/-1;background:#fff!important;border-color:#ece6d8!important;}
.related-block .rel-item{border:0;}
.rel-cat{color:var(--nt-gold-dk)!important;}
.related-block a{color:var(--nt-ink)!important;}
.related-block a:hover{color:var(--nt-gold-dk)!important;}
@media(max-width:760px){.sidebar{grid-template-columns:1fr;}}

/* ---- sources (dark) ---- */
.sources-block{border-top-color:var(--nt-line)!important;}
.sources-title{color:var(--nt-gold)!important;}
.sources-table td{color:rgba(255,255,255,.7)!important;}

/* ---- footer (dark) ---- */
.article-footer{background:var(--nt-bg)!important;border-top:1px solid var(--nt-line)!important;}
.footer-disclaimer{color:var(--nt-muted)!important;}
.footer-disclaimer strong{color:#fff!important;}

@media(max-width:760px){
  .article-body{padding:28px 22px!important;margin-left:16px;margin-right:16px;border-radius:12px;}
}
