/* the dash · masthead, road nav, deco icon row, ticker chips, search dock. Loaded on EVERY private page.
   [dash 2026-11-21, JT "build" 21:22 PT] PRIVATE ONLY. Theme lives in site_src/dash/ (copied to site/dash/ by dash_pass.py). */
@font-face{font-family:'Federo';src:url(Federo-Regular.ttf) format('truetype');font-display:swap}
@font-face{font-family:'Poiret One';src:url(PoiretOne-Regular.ttf) format('truetype');font-display:swap}
@font-face{font-family:'Plex Mono';src:url(IBMPlexMono-Regular.ttf) format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'Plex Mono';src:url(IBMPlexMono-SemiBold.ttf) format('truetype');font-weight:600;font-display:swap}
:root{--night:#06080e;--navy:#0b1020;--panel:#0d1222;--panel2:#11172a;
 --gold:#c9a24a;--gold2:#e3c278;--gold-d:#6e5a2c;--cream:#f1e4c6;--warm:#fff4d6;--mu:#9d947d;--mu2:#6f6a5c;
 --alert:#e0503c;--up:#8fc98a;--dn:#e07a6a;
 --disp:'Federo','Poiret One',Georgia,serif;--deco:'Poiret One','Federo',Georgia,serif;--num:'Plex Mono',ui-monospace,monospace;
 --body:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}

html{background-color:#06080e!important;overflow-x:hidden}
/* ===== masthead (the old <header>, restructured server-side; scripts still append #hdbtns into it) ===== */
html body header.dmast{display:grid!important;position:relative!important;top:auto!important;z-index:40!important;
 grid-template-columns:minmax(0,1fr) max-content!important;align-items:start;column-gap:14px;max-width:none!important;margin:0 0 6px!important;padding:12px 18px 6px!important;text-align:center!important;
 background-color:#06080e!important;
 background-image:linear-gradient(rgba(201,162,74,.35),rgba(201,162,74,.35)),radial-gradient(900px 260px at 50% -60px,rgba(255,236,190,.11),transparent 70%),linear-gradient(180deg,#0a0f1e,#06080e)!important;
 background-size:100% 1px,auto,auto!important;
 background-position:0 100%,50% 0,0 0!important;
 background-repeat:no-repeat!important;
 background-attachment:scroll!important;
 border:0!important;border-bottom:0!important;box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important}
header.dmast .dm-sun{position:absolute;left:50%;top:-12px;transform:translateX(-50%);width:560px;height:130px;pointer-events:none;opacity:.5;z-index:0}
html body header.dmast>.dm-sun{grid-column:1 / -1}
html body header.dmast>*:not(.dm-icons):not(.dm-sun){grid-column:1;min-width:0}
header.dmast .dm-row{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:16px;min-width:0;width:100%;box-sizing:border-box;padding-left:0}
header.dmast .dm-row{min-height:67px}
header.dmast .dm-brand{display:flex;align-items:center;gap:16px;color:var(--cream)!important;text-decoration:none!important;position:relative;min-height:inherit}
header.dmast .dm-emb{width:67px;height:67px;border-radius:50%;box-shadow:0 0 0 1px var(--gold-d),0 0 24px rgba(201,162,74,.25);flex:none;position:static;margin-right:0}
header.dmast .dm-t{display:block;font:400 34px/1 var(--disp)!important;letter-spacing:.16em;text-transform:uppercase;color:var(--cream);text-shadow:0 0 18px rgba(255,236,190,.18)}
header.dmast .dm-tag{display:block;font:400 13px/1.3 var(--deco)!important;font-style:normal!important;letter-spacing:.22em;text-transform:uppercase;color:var(--gold2);margin-top:3px}
header.dmast .dm-tag b{font-weight:400;color:var(--cream)}
html body header.dmast.big{padding-top:16px!important} /* [mast-compress-1202] was 20px */
header.dmast.big .dm-row{padding-left:0;min-height:134px}
header.dmast.big .dm-sun{width:760px;height:220px;top:-120px}
header.dmast.big .dm-emb{width:134px;height:134px}
header.dmast.big .dm-t{font-size:64px!important}
header.dmast .dm-t,
header.dmast.big .dm-t{
  white-space:nowrap;
  max-width:100%;
  box-sizing:border-box;
  font-size:clamp(32px, 4.2vw, 64px)!important;
  letter-spacing:clamp(.08em, .1em + .2vw, .16em)!important;
}
header.dmast.big .dm-tag{font-size:17px!important;letter-spacing:.24em;margin-top:6px}
header.dmast .dm-stamp{position:relative;z-index:1;margin-top:6px;font:12px var(--num);color:var(--mu)}
html body header.dmast.big .dm-stamp{margin-top:16px} /* [mast-compress-1202] was 20px */
header.dmast .dm-stamp b{color:var(--cream);font-weight:600;border:1px solid var(--gold-d);padding:1px 8px;margin-left:4px}

/* page title (the old h1) */
html body header.dmast>h1,html body header.dmast h1.tt{position:relative;z-index:1;display:block!important;margin:8px auto 2px!important;width:auto!important;
 font:400 21px/1.15 var(--disp)!important;letter-spacing:.14em!important;text-transform:uppercase;color:var(--warm)!important;text-align:center!important;order:unset!important}
/* [mast-center-1201] the mast is a 2-col grid (content | icons). content is grid-column 1, so
   margin:auto / text-align:center sit on the leftover column, ~87px left of the viewport /
   .wrap / .dsec axis. span the close·built stamp and the page title across both columns so
   they share that axis. below 820 the mast is already a full-width flex column. */
/* [mast-center-1202] nav, US/Canada and market subtabs, the all-times line, and the
   wordmark row were still in column 1, so they sat ~87px left of mid. span them too.
   the wheel is now in-flow next to the title so the wheel+title group centers as one
   unit on that same axis (the title is no longer alone at mid with the wheel hanging
   off left). at 1280 the wider 134px group still clears the icon column by ~87px.
   below 820 the mast is already a full-width flex column. */
html body header.dmast>.page-built,
html body header.dmast>h1,
html body header.dmast h1.tt,
html body header.dmast>.dm-row,
html body header.dmast>.dm-stamp,
html body header.dmast>.dm-nav,
html body header.dmast>.dm-sub,
html body header.dmast>small{grid-column:1 / -1!important}
/* [mast-compress-1202] spanning .dm-row across both columns let auto-placement
   put it in a new row under the icon stack (grid-row 1 / -1, column 2), which
   added the icon-stack's 103px as empty air above the wheel. pin the wordmark
   to row 1 so it shares the top row with the icons (clearance at 1280 is still
   ~87px). */
html body header.dmast>.dm-row{grid-row:1}

/* ===== road nav + markets sub-nav ===== */
header.dmast .dm-nav{position:relative;z-index:1;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;margin:8px auto 2px}
header.dmast .dm-nav a{font:400 14px/1 var(--disp)!important;letter-spacing:.22em;text-transform:uppercase;color:var(--mu)!important;padding:8px 16px;border-top:1px solid var(--gold-d);border-bottom:1px solid var(--gold-d);text-decoration:none!important;background:transparent}
header.dmast .dm-nav a+a{border-left:1px solid var(--gold-d)}
header.dmast .dm-nav a.on{color:var(--night)!important;background:linear-gradient(180deg,var(--gold2),var(--gold))}
header.dmast .dm-nav a:hover:not(.on){color:var(--warm)!important}
header.dmast .dm-sub{position:relative;z-index:2;display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:4px auto 2px;flex-shrink:0}
header.dmast .dm-sub a{font:400 11.5px/1 var(--disp)!important;letter-spacing:.16em;text-transform:uppercase;color:var(--gold2)!important;border:1px solid var(--gold-d);padding:5px 9px;text-decoration:none!important}
header.dmast .dm-sub a.on{background:rgba(201,162,74,.16);color:var(--warm)!important;border-color:var(--gold)}
header.dmast .dm-sub a:hover{border-color:var(--gold)}

/* [mast-compress-1202] close·built line: keep a little air under the nav, less
   before the divider. !important to beat tab-values.css / quote-board.css. */
html body header.dmast>.page-built,
html body header.dmast .page-built{margin:4px auto 6px!important}

/* ===== deco icon stack: map / share / notes / blue-blocker. [hdrstack-1127] right-side column above 820, top row at 820, icons only at 500. ===== */
header.dmast .dm-icons{
  position:relative;
  z-index:3;
  top:auto; right:auto;
  grid-column:2;
  grid-row:1 / -1;
  align-self:start;
  justify-self:end;
  display:flex;
  flex-direction:column;
  flex-wrap:nowrap;
  justify-content:flex-start;
  align-items:stretch;
  gap:5px;
  width:max-content;
  min-width:max-content;
  margin:0;
}
html body header.dmast #hdbtns,
html body header.dmast .sn-hw{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  gap:5px!important;
  width:max-content!important;
  min-width:max-content!important;
  margin:0!important;
  justify-self:auto!important;
  order:unset!important;
}
html body header.dmast #hdbtns>button,html body header.dmast #hdbtns>a,html body header.dmast .sn-hw>button,
html body header.dmast #mapt.mapbtn,html body header.dmast #shr.shrbtn,html body header.dmast #bbt,html body header.dmast #snbtn{
 position:static!important;min-height:0!important;height:auto!important;margin:0!important;background:rgba(6,8,14,.55)!important;color:var(--gold2)!important;
 border:1px solid var(--gold-d)!important;border-radius:0!important;padding:4px 9px!important;box-shadow:none!important;
 font:400 11px/1.1 var(--disp)!important;letter-spacing:.12em!important;text-transform:uppercase!important;white-space:nowrap!important;cursor:pointer;transform:none!important}
html body header.dmast #hdbtns>button:hover,html body header.dmast #hdbtns>a:hover{border-color:var(--gold)!important;color:var(--warm)!important}
html body.bb header.dmast #bbt{color:var(--night)!important;background:linear-gradient(180deg,var(--gold2),var(--gold))!important;border-color:var(--gold)!important}
html body header.dmast #hdbtns svg{width:12px;height:12px;vertical-align:-2px}
html body header.dmast #shrn{color:var(--up)!important}
html body header.dmast #hdbtns>button,
html body header.dmast #hdbtns>a,
html body header.dmast #snbtn{
  width:auto!important;
  min-width:100%!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
}

/* ===== ticker = the live header chips (live-chips.js still updates them) ===== */
html body header.dmast>small{position:relative;z-index:1;display:block!important;margin:6px auto 0!important;max-width:1180px!important;font:12px var(--num)!important;color:var(--mu)!important;text-align:center!important;grid-column:1 / -1!important;grid-row:auto!important}
html body header.dmast>small>a:not(.fc){color:var(--gold2)!important;font-family:var(--disp)!important;letter-spacing:.1em}
html body header.dmast .fch{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:6px 8px!important;margin:8px auto 2px!important;overflow:visible!important;white-space:normal!important;grid-template-columns:none!important}
html body header.dmast .fch .fca{display:none!important}
html body header.dmast .fch .fc{display:inline-flex!important;align-items:baseline!important;gap:6px!important;padding:4px 10px!important;border:1px solid #232a3d!important;border-radius:0!important;background:rgba(13,18,34,.75)!important;
 color:var(--gold2)!important;font:400 11px var(--disp)!important;letter-spacing:.14em!important;text-transform:uppercase!important;text-decoration:none!important;box-shadow:none!important;max-width:none!important}
html body header.dmast .fch .fc>i{font-style:normal;color:var(--gold);opacity:.8}
html body header.dmast .fch .fc em{font:600 13.5px var(--num)!important;font-style:normal!important;letter-spacing:0!important;text-transform:none!important;color:var(--cream)!important}
html body header.dmast .fch .fc .fct{font:400 10.5px var(--num)!important;color:var(--mu)!important;letter-spacing:.04em}
html body header.dmast .fch .fc .fcl,html body header.dmast .fch .fc small{font:400 11px var(--num)!important;color:var(--mu)!important;letter-spacing:0}
html body header.dmast .fch .fc:hover{border-color:var(--gold)!important}
html body header.dmast .fch .fc[href="divergence.html"]{border-color:rgba(224,80,60,.6)!important}
html body header.dmast .fch .fc[href="divergence.html"] em{color:var(--alert)!important}
html body header.dmast .fch .fc.on{border-color:var(--gold)!important;background:rgba(201,162,74,.14)!important;color:var(--warm)!important}
html body header.dmast .fch .fc em,html body header.dmast .fch .fc.on em{display:inline!important;background:none!important;border:0!important;padding:0!important;box-shadow:none!important;opacity:1!important;visibility:visible!important}
html body header.dmast>small>a[href="index.html"]{display:none!important}
html body header.dmast .dto{display:block;margin:8px auto 2px;font:600 13.5px/1.4 var(--num)!important;color:var(--gold2)!important;font-variant-caps:normal!important;letter-spacing:.04em!important;text-transform:none!important}
html body header.dmast .dto b{color:var(--cream)!important;font-weight:600;border:1px solid var(--gold-d);padding:1px 8px;margin-left:4px;letter-spacing:0}
html body header.dmast .dto .dbt{color:var(--gold2)!important;font-weight:600}

/* ===== floating dock: home + search, restyled deco ===== */
#hs-dock .hsb{background:rgba(6,8,14,.9)!important;color:var(--gold2)!important;border:1px solid var(--gold)!important;border-radius:0!important;
 font:400 12px var(--disp)!important;letter-spacing:.16em!important;text-transform:uppercase!important;min-height:34px!important;flex-shrink:0!important;box-shadow:0 0 0 1px rgba(201,162,74,.18),0 4px 14px rgba(0,0,0,.6)!important}
#hs-dock .hsb:hover{color:var(--warm)!important;border-color:var(--gold2)!important}

@media(max-width:1100px){
  /* [mast-center-1202] side-by-side wheel+title runs into the icon column below ~952px
     once the group is centered on the true page mid. stack the wheel above the title
     (same pattern as the existing 900px layout) so mid-width desktops stay clear.
     1280 and up stay side-by-side; 1280 still has ~87px of icon clearance. */
  header.dmast .dm-row, header.dmast.big .dm-row{padding-left:0;min-height:0;padding-top:4px;padding-bottom:4px}
  header.dmast.big .dm-emb{width:86px;height:86px}
  header.dmast .dm-emb{width:53px;height:53px}
  header.dmast .dm-emb,header.dmast.big .dm-emb{position:static;transform:none;margin-right:0;top:auto;right:auto}
  header.dmast .dm-brand{flex-direction:column;gap:8px;text-align:center}
}

@media(max-width:900px){
 html body header.dmast.big{padding-top:16px!important}
 header.dmast .dm-row, header.dmast.big .dm-row{padding-left:0;min-height:0;padding-top:4px;padding-bottom:4px}
 html body header.dmast.big .dm-stamp{margin-top:12px}
 header.dmast.big .dm-t{font-size:40px!important;letter-spacing:.12em}
 header.dmast.big .dm-emb{width:86px;height:86px}
 header.dmast.big .dm-tag{font-size:12px!important;letter-spacing:.16em}
 header.dmast .dm-t{font-size:26px!important}
 header.dmast .dm-emb{width:53px;height:53px}
 header.dmast .dm-emb,header.dmast.big .dm-emb{position:static;transform:none;margin-right:0;top:auto;right:auto}
 header.dmast .dm-brand{flex-direction:column;gap:8px;text-align:center}
 header.dmast .dm-tag{font-size:10.5px!important;letter-spacing:.14em}
 header.dmast .dm-sun{width:420px;height:150px}
 header.dmast .dm-nav a{font-size:12px!important;padding:8px 9px;letter-spacing:.14em}
 html body header.dmast .fch{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body header.dmast .fch .fc{min-width:0!important;overflow:hidden!important;flex-wrap:wrap!important}
}

@media(max-width:820px){
  html body header.dmast{display:flex!important;flex-direction:column!important;align-items:stretch!important}
  header.dmast .dm-row, header.dmast.big .dm-row{padding-left:0}
  header.dmast.big .dm-t{font-size:40px!important;letter-spacing:.12em!important;white-space:normal}
  header.dmast .dm-t{font-size:26px!important}
  header.dmast .dm-icons{
    order:-1;
    flex-direction:row!important;
    justify-content:flex-end!important;
    width:100%!important;
    min-width:0!important;
    margin:0 0 4px!important;
    gap:6px;
    grid-column:auto; grid-row:auto;
  }
  html body header.dmast #hdbtns,
  html body header.dmast .sn-hw{
    flex-direction:row!important;
    width:auto!important;
    min-width:0!important;
    gap:6px!important;
  }
  html body header.dmast #hdbtns>button,
  html body header.dmast #hdbtns>a,
  html body header.dmast #snbtn{
    width:auto!important;
    min-width:0!important;
  }
}

@media(max-width:500px){
  header.dmast .dm-ilbl{display:none!important}
  html body header.dmast #hdbtns>button,
  html body header.dmast #hdbtns>a,
  html body header.dmast #snbtn{
    padding:4px 7px!important;
    min-width:28px;
    justify-content:center;
    width:auto!important;
  }
}


/* [blueblocker-1201] orange-lens tint was dropped in the dash rebrand, so body.bb only gold-filled the pill and the page looked unchanged. restore a page-wide amber lens (navy/gold, no macro-anchor brown). pointer-events none so the overlay can't eat clicks. */
html body.bb::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:2147483646;
  background:#e8a030;
  opacity:.65;
  mix-blend-mode:color;
}
/* ON + hover: the generic #hdbtns>button:hover rule was more specific and swapped the gold fill's dark text for cream, so the on-state looked off while the pointer sat on it */
html body.bb header.dmast #hdbtns>button#bbt,
html body.bb header.dmast #hdbtns>button#bbt:hover,
html body.bb header.dmast #hdbtns>button#bbt:focus,
html body.bb header.dmast #hdbtns>button#bbt:focus-visible{
  color:var(--night)!important;
  background:linear-gradient(180deg,var(--gold2),var(--gold))!important;
  border-color:var(--gold)!important;
}
