/* the dash · reskin for the existing pages (market pages + sub-pages, history, speeches). Build-time: dash_pass.py also
   remaps the old warm-brown surfaces to night navy and swaps the old display face to Federo in every page/stylesheet.
   [dash 2026-11-21, JT "build"] PRIVATE ONLY. */
html body{background:#06080e!important;color:var(--cream)}
html body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(1200px 500px at 50% -100px,rgba(255,236,190,.08),transparent 60%),
    radial-gradient(900px 900px at 50% 30%,#0b1022,#06080e 70%);
}
/* panels: navy instead of brown, deco gold hairline */
.box,.ncp,.yc2,.bento,section.box,.card,.panel,.tn,.gfold,.ab,.abb{background:linear-gradient(180deg,rgba(17,23,42,.94),rgba(10,14,26,.94))!important;border-color:#6e5a2c!important}
.ncp{outline-color:rgba(201,162,74,.22)!important}
/* card headings: Federo (old display face retired) */
main h2,main h3,.box h2,.box h3,.bento h2,.bento h3,section h2,section h3,.yhd h2,.yc2t h3,.gfh,.bht{font-family:'Federo',Georgia,serif!important;letter-spacing:.08em!important;font-weight:400!important}
.box>h2,.bento>h2,section.box>h2,.bhd h2{color:var(--gold2)!important}
/* numbers clean */
.yc2n,.num,.ymv,.wc-chip .n{font-family:'Plex Mono',ui-monospace,monospace!important;font-variant-numeric:tabular-nums}

/* [goldlines2-1127] card gold edges were bleeding full-width during accelerated scroll
   (ratios / bento grid, 1–2 frames, lined up with the card top and bottom).
   Contain paint to each card; do not create a scroll container on #canada (TIME bar).
   Grids themselves stay untransformed — no will-change on the parent. */
section.box,
section.bento.box,
section.bento.hb,
.ratio-box,
.bento-tile,
.card,
.panel,
.tn,
.gfold,
.ncp,
.yc2,
.frame{
  isolation:isolate;
  contain:paint;
  overflow:clip;
}
#canada.bento,
section#canada,
#canada.bento .bbody,
#canada .bento{
  overflow:visible;
  contain:none;
}
.hgrid,
.ratio-hgrid,
main > .grid,
.grid,
.bento:has(> .bento-tile){
  will-change:auto;
  transform:none;
}

/* [safarilines-1127] Safari still flashed full-width gold lines (1–2 frames) while
   scrolling, lined up with bento top/bottom (ratios / equities on the quoteboard).
   Chrome was clean after goldlines2. WebKit tiles gold border-top/bottom and
   re-rasters a position:fixed wash against those edges when cards sit on
   fractional pixels. Keep contain:paint / isolation / overflow:clip on cards;
   do not put will-change or transform on grid parents. */
html body::before{
  content:none!important;
  display:none!important;
  background:none!important;
}
html,
html body{
  background-color:#06080e!important;
  background-image:
    radial-gradient(1200px 500px at 50% -100px,rgba(255,236,190,.08),transparent 60%),
    radial-gradient(900px 900px at 50% 30%,#0b1022,#06080e 70%)!important;
  background-repeat:no-repeat!important;
  background-attachment:scroll!important;
  background-position:50% 0,50% 0!important;
}
section.box,
section.bento.box,
section.bento.hb,
.ratio-box,
.bento-tile,
.card,
.panel,
.tn,
.gfold,
.ncp,
.yc2,
.frame{
  border-top-color:transparent!important;
  border-bottom-color:transparent!important;
  background-image:
    linear-gradient(#6e5a2c,#6e5a2c),
    linear-gradient(#6e5a2c,#6e5a2c),
    linear-gradient(180deg,rgba(17,23,42,.94),rgba(10,14,26,.94))!important;
  background-size:100% 1px,100% 1px,100% 100%!important;
  background-position:0 0,0 100%,0 0!important;
  background-repeat:no-repeat!important;
  background-origin:border-box!important;
  background-clip:border-box!important;
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
  /* whole-pixel card boxes; compositor layer stays on the card, not the grid */
  transform:translateZ(0);
}
