/* Site-wide theme: deep navy with white accents (dark), white with navy accents (light),
   one slow glow, floating glass nav.
   Linked after each page's own <style> so it overrides the page's tokens. */

:root{
  --bg:#060e1c;
  --card:#0b1729;
  --card-hover:#101f36;
  --hair:#1a2a42;
  --menu:rgba(6,14,28,.97);
  --glow:rgba(70,95,140,.12);
  --ink:#ffffff;
  --muted:#9ba7b9;
  --accent:#ffffff;
  --accent-ink:#060e1c;
  --glass:linear-gradient(155deg,rgba(255,255,255,.08),rgba(255,255,255,.03) 55%,rgba(255,255,255,.05));
  --glass-hover:linear-gradient(155deg,rgba(255,255,255,.12),rgba(255,255,255,.04) 55%,rgba(255,255,255,.07));
  --glass-rim:rgba(255,255,255,.3);
  --glass-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 18px 40px rgba(0,0,0,.35);
  --up:#3fb950;
  --down:#f85149;
}
/* Pages used orange/blue (--greed/--fear) for up/down and as the accent; the site is green/red now.
   The Sentiment Index keeps them, since there they mean greed and fear. */
:root:not(.sentiment-palette){--greed:var(--up);--fear:var(--down)}
:root[data-theme="light"]{
  --bg:#ffffff;
  --ink:#0d1626;
  --muted:#5b6678;
  --card:#ffffff;
  --card-hover:#e8edf4;
  --hair:#aab6c7;
  --menu:rgba(255,255,255,.99);
  --glow:rgba(255,255,255,0);
  --accent:#2a5590;
  --accent-ink:#ffffff;
  --glass:#ffffff;
  --glass-hover:#eef2f7;
  --glass-rim:#b4bfce;
  --glass-shadow:0 1px 0 #b4bfce,0 12px 30px rgba(10,34,102,.18);
  --panel-shadow:0 1px 3px rgba(13,22,38,.12),0 8px 24px rgba(13,22,38,.10);
  --up:#1a7f37;
  --down:#cf222e;
}

body{background:var(--bg);position:relative;overflow-x:hidden}
/* z-index:-1 keeps the glow behind all page content without every page's wrappers needing a z-index. */
/* The glow is a background on a full-width box, moved by background-position.
   It used to be a 760px box shifted right with transform, which hung past the
   right edge on phones and made mobile browsers lay the page out ~75px wider
   than the screen (sideways scroll, and taps landing off-target). */
body::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  left:0;right:0;top:40px;height:620px;
  background:radial-gradient(closest-side,var(--glow),transparent) no-repeat;
  background-size:760px 520px;
  background-position:calc(50% + 152px) 0;
  filter:blur(30px);
  animation:soft-breathe 14s ease-in-out infinite alternate;
}
@keyframes soft-breathe{to{background-size:821px 562px;background-position:calc(50% + 38px) 40px}}
@media (prefers-reduced-motion:reduce){body::before{animation:none}}

.sitenav{
  position:sticky;top:12px;z-index:50;
  max-width:1360px;margin:12px auto 0;padding:10px 12px 10px 22px;
  border:1px solid rgba(255,255,255,.1);border-radius:999px;
  background:rgba(6,14,28,.84);
  backdrop-filter:blur(22px) saturate(160%);-webkit-backdrop-filter:blur(22px) saturate(160%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 12px 30px rgba(0,0,0,.3);
}
:root[data-theme="light"] .sitenav{background:rgba(255,255,255,.9);border-color:#e3e9f2;box-shadow:0 8px 24px rgba(10,34,102,.07)}
.navdrop > .navlabel{border-radius:999px}
/* Nested backdrop-filter can't blur inside the blurred nav, so the menu is near-opaque. */
.navdrop .dropdown{margin-top:10px;border:1px solid var(--hair);border-radius:20px;background:var(--menu);box-shadow:0 24px 50px rgba(0,0,0,.4)}
.dropdown .mcol a:hover,.dropdown .mcol a.active{color:var(--accent)}
.theme-toggle{border-radius:999px}
@media (max-width:860px){.sitenav{margin:8px 12px 0;top:8px}}

.ticker-wrap,[data-theme="light"] .ticker-wrap{background:transparent;border:0;margin-top:14px;
  -webkit-mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.ticker-item .t-change.up{color:var(--up)}
.ticker-item .t-change.down{color:var(--down)}

/* Mobile menu: up to 1024px the nav links collapse behind a menu button
   (nav.js toggles .nav-open), and each section opens in place as an
   accordion instead of as a floating mega-menu. The full row of links
   needs about 980px, so tablets get the menu button too. */
.nav-toggle{display:none}
@media (max-width:1024px){
  .navlinks{display:none}
  .sitenav{grid-template-columns:1fr auto auto;column-gap:6px}
  .nav-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid var(--hair);border-radius:999px;background:transparent;color:var(--ink);font-size:17px;line-height:1;cursor:pointer}
  .sitenav.nav-open{border-radius:22px}
  .sitenav.nav-open .navlinks{display:flex;justify-self:stretch;grid-column:1/-1;grid-row:2;flex-direction:column;align-items:stretch;gap:2px;margin-top:10px;padding-top:8px;border-top:1px solid var(--hair);max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);overflow-y:auto;-webkit-overflow-scrolling:touch}
  .sitenav.nav-open .navdrop > .navlabel{display:block;padding:12px 10px;font-size:15px;cursor:pointer;border-radius:12px}
  .sitenav.nav-open .navdrop .dropdown{position:static;margin:0 0 6px;padding:2px 10px 8px;border:0;border-radius:0;box-shadow:none;background:transparent}
  .sitenav.nav-open .mega{display:block}
  .sitenav.nav-open .mcol h4{margin:10px 0 4px}
  .sitenav.nav-open .dropdown .mcol a{padding:9px 0;font-size:15px}
}

/* Stat cards as one compact strip: the grid is the box and each card is a
   cell. The dividers are box-shadows the grid's overflow clips, so the
   first column and first row never draw a second edge, whatever the column
   count or wrap. The !important rules beat the per-page copies and the
   inline font sizes and colors left over from the old cards. Green and red
   only mark values whose sign is the point (.up/.down and the older
   per-page names for the same thing). */
.stat-grid{gap:0!important;background:var(--card);border:1px solid var(--hair);border-radius:10px;overflow:hidden;margin-bottom:24px}
.stat-card{background:none;border:0;border-radius:0;padding:10px 14px 11px;min-width:0;box-shadow:-1px 0 0 var(--hair),0 -1px 0 var(--hair)}
.stat-label{font-size:11.5px;letter-spacing:.02em;margin-bottom:2px}
.stat-value{font-family:var(--mono);font-size:19px!important;line-height:1.3;font-variant-numeric:tabular-nums;color:var(--ink)!important}
.stat-value.txt,.stat-value.stat-value-text{font-family:var(--serif);font-size:16px!important;line-height:1.35}
.stat-value.up,.stat-value.good,.stat-value.beat,.stat-value.spread-pos{color:var(--up)!important}
.stat-value.down,.stat-value.cell-neg,.stat-value.bad,.stat-value.miss,.stat-value.spread-neg{color:var(--down)!important}
.stat-note,.stat-vs{font-size:11.5px;margin-top:1px}

.mini-stats{gap:0!important;background:var(--card);border:1px solid var(--hair);border-radius:10px;overflow:hidden}
.mini-stat{background:none;border:0;border-radius:0;padding:10px 14px 11px;min-width:0;box-shadow:-1px 0 0 var(--hair),0 -1px 0 var(--hair)}
.mini-stat-label{font-size:11.5px;letter-spacing:.02em;margin-bottom:2px}
.mini-stat-value{font-size:19px;line-height:1.3;font-variant-numeric:tabular-nums;color:var(--ink)}
.mini-stat-value.up{color:var(--up)}
.mini-stat-value.down{color:var(--down)}
.mini-stat-note{font-size:11.5px;margin-top:1px}

/* Coverage: a quiet line under the As-of time when a sweep loaded only part
   of its universe. Real failures keep .warning-banner, now compact. */
.header-meta{display:flex;flex-direction:column;align-items:flex-end}
.coverage-note{color:var(--muted);font-size:11.5px;margin-top:3px;text-align:right}
.coverage-note[title]{cursor:help;text-decoration:underline dotted;text-underline-offset:3px}
.warning-banner{font-size:12px;padding:7px 11px;border-radius:7px;margin-bottom:14px}

/* Phones: nothing may be wider than the screen. Tables keep their desktop
   min-width but scroll sideways inside their own box (contain:inline-size
   stops the table's width from propagating up and widening the page), and
   rows of range/toggle buttons wrap instead of running off the edge. */
@media (max-width:720px){
  table{display:block;min-width:0;max-width:100%;overflow-x:auto;contain:inline-size;-webkit-overflow-scrolling:touch}
  .chart-box-header,.range-controls,.toggle-group,.metric-toggle,.history-controls{flex-wrap:wrap}
  /* Grid items default to min-width:auto, so one long value (a date range,
     a sector name) stretched a whole row of cards past the screen. */
  :is(.stat-grid,.chart-grid,.table-grid,.scatter-grid,.leaderboard-grid) > *{min-width:0}
  .stat-card{overflow-wrap:anywhere}
  .header-meta{align-items:flex-start}
  .coverage-note{text-align:left}
  .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .stat-grid > .stat-card:last-child:nth-child(odd){grid-column:1/-1}
}

.sitenav .navlinks a.navplain{font-size:12.5px;color:var(--muted);padding:8px;border-radius:999px}
.sitenav .navlinks a.navplain:hover,.sitenav .navlinks a.navplain.active{color:var(--ink)}
@media (max-width:1024px){.sitenav.nav-open .navlinks a.navplain{display:block;padding:12px 10px;font-size:15px}}
@media (min-width:1025px){.sitenav{column-gap:18px}}
.sitenav .navlinks a.navplain{text-decoration:none}

/* Chart legends and keys use the page ink, like the axis text chart-style.js
   sets on the charts themselves, so color on a chart only comes from the data.
   On the warm-paper .ndr-panel, which stays light in dark mode, they stay dark. */
:is(.chart-legend-custom span,.strip-key-row,.strip-key,.sm-key,.sector-legend,.ret-legend,.cal-legend,.panel-label){color:var(--ink)}
.ndr-panel :is(.chart-legend-custom span,.strip-key-row,.strip-key,.sm-key,.sector-legend,.ret-legend,.cal-legend,.panel-label){color:#111318}

/* Chart series colors for anything that isn't performance. Green and red
   (--up/--down) are kept for gains and losses, beats and misses. */
/* Palette: dark blue, silver gray, light blue, purple. No orange or yellow. The main line of
   a line chart uses --ink (black in light mode, white in dark), and these
   colors go to any other series. */
:root{--chart-blue:#6f93d6;--series-1:#6f93d6;--series-2:#8794aa;--series-3:#8cc4ec;--series-4:#a98bd6}
:root[data-theme="light"]{--chart-blue:#3f6fb5;--series-1:#0c1f3d;--series-2:#6b7686;--series-3:#4a90c8;--series-4:#6a4c93}

/* No colored rule down the commentary block's left side: it carries no
   meaning, so the block keeps the same thin outline as every other card. */
.commentary{border-left:1px solid var(--hair)}
/* The paper-panel charts' gold, once a yellow and then orange, is the silver second color. */
:root{--ndr-gold:var(--series-2)}

/* One typeface everywhere: Times New Roman for text, numbers, tables and controls. */
:root{--mono:'Times New Roman',Times,serif;--sans:'Times New Roman',Times,serif;--serif:'Times New Roman',Times,serif}
html body,html body *{font-family:'Times New Roman',Times,serif!important}

/* The page's place in the site (Research, or Data and its group), above the title. */
.pathline{font-size:13px;color:var(--muted);letter-spacing:.04em;margin:0 0 6px}

/* Research pages open with their question and answer under the title. */
.qa-block{display:grid;gap:8px;margin:14px 0 4px;padding:12px 16px;border-left:2px solid var(--hair);max-width:820px}
.qa-block>div{display:grid;grid-template-columns:90px 1fr;gap:12px;font-size:15px;line-height:1.5}
.qa-label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding-top:3px}
@media (max-width:600px){.qa-block>div{grid-template-columns:1fr;gap:2px}}

/* Desktop nav: Research, Data and About larger and centered on the page itself
   (equal side columns, so the brand's width doesn't pull them off center). */
@media (min-width:1025px){
  .sitenav{grid-template-columns:1fr auto 1fr}
  .sitenav .brand{justify-self:start}
  .sitenav .theme-toggle{justify-self:end}
  .sitenav .navdrop > .navlabel,.sitenav .navlinks a.navplain{font-size:16px}
}

/* About lives at the right beside the theme toggle on desktop, and inside the
   collapsed menu on smaller screens. */
.sitenav .navright{display:flex;align-items:center;gap:10px;justify-self:end}
.sitenav .navright .navabout{font-size:16px;color:var(--muted);padding:8px;text-decoration:none;border-radius:999px}
.sitenav .navright .navabout:hover{color:var(--ink)}
@media (min-width:1025px){.sitenav .navlinks .navabout-menu{display:none}}
@media (max-width:1024px){.sitenav .navright .navabout{display:none}}

/* Navy accents (white in dark mode): labels above titles, the question block,
   active buttons and the current nav item. */
.pathline,.qa-label,.rtopic,.section-title{color:var(--accent)!important}
:root[data-theme="light"] h1,:root[data-theme="light"] .rq{color:var(--accent)}
.range-btn.active,.toggle-btn.active,.seg button[aria-pressed="true"]{background:var(--accent)!important;color:var(--accent-ink)!important;border-color:var(--accent)!important}
.navdrop.has-active > .navlabel{color:var(--accent)!important}
.rcard:hover{border-color:var(--accent)}
.qa-block{border-left:2px solid var(--accent)}
:root,:root:not([data-theme="light"]){--plot-bg:#0b1729}
:root[data-theme="light"]{--plot-bg:#e8edf4}
/* On a white page the panels need a shadow to separate from the background. */
:root[data-theme="light"] :is(.chart-box,.stat-grid,.mini-stats,.rcard){box-shadow:var(--panel-shadow)}
/* Paper-panel charts follow the theme: navy panel with light ink in dark mode,
   white panel with navy ink in light mode. The page reloads on a theme switch,
   so the charts pick these up when they draw. */
:root{--ndr-plot:#0b1729;--ndr-grid:#1f3150;--ndr-axis:#e6ebf2;--ndr-axis-soft:#9ba7b9;--ndr-navy:#e6ebf2;--ndr-slate:#8794a8;--ndr-red:#e0665b;--ndr-green:#4fbf7d}
:root[data-theme="light"]{--ndr-plot:#ffffff;--ndr-grid:#c5cedb;--ndr-axis:#1b2638;--ndr-axis-soft:#5b6678;--ndr-navy:#0c1f3d;--ndr-slate:#6b7a90;--ndr-red:#b3352b;--ndr-green:#1f7a45}
/* Controls and the ticker had hardcoded graphite (dark) and cream (light) fills. */
.range-btn{background:var(--card)}
:root[data-theme="light"] .range-btn{background:#f1f4f9}
.ticker-wrap{background:var(--bg)!important}
:root[data-theme="light"] .ticker-wrap{background:#f6f8fb!important}
/* Text runs the full width of its container on every page: subtitles, chart
   notes, intros and body paragraphs used to stop at 560 to 920px. */
.subtitle,.chart-note,.chart-subhead,.momentum-sub,.section-intro,.chart-desc,.vtext,.qa-block,.container p,.explainer p,.commentary p{max-width:none!important}
.header > div:first-child{flex:1 1 auto;min-width:0}
.method-limits{margin:4px 0 6px}
.method-limits summary{list-style:none;cursor:pointer;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);padding:4px 0}
.method-limits .ml-rows{display:grid;gap:8px;margin-top:6px;padding:12px 16px;border-left:2px solid var(--hair)}
.method-limits .ml-rows>div{display:grid;grid-template-columns:130px 1fr;gap:12px;font-size:14px;line-height:1.5}
.ml-label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding-top:3px}
@media (max-width:600px){.method-limits .ml-rows>div{grid-template-columns:1fr;gap:2px}}
.method-limits summary::-webkit-details-marker{display:none}
.method-limits summary::before{content:"\25B8";display:inline-block;width:16px}
.method-limits[open] summary::before{content:"\25BE"}


/* ===== Site design since November 2026 =====
   Black, white and one navy accent (--blue, with --blue-lt for dark backgrounds). Times New
   Roman throughout, square corners, full-bleed color bands. These rules come last and win
   over the older theme rules above and each page's own <style> block. The matching behavior
   (index, homepage exhibits, chapter bar, previous/next) is in desk.js. */

html:root{--blue:#14284b;--blue-lt:#8aa3d4;--black:#0a0a0a;--dk-navh:56px;--disp:"Times New Roman",Times,serif;--ser:"Times New Roman",Times,serif}
html:root:not([data-theme="light"]){
  --bg:#0a0a0a;--ink:#ffffff;--muted:#a9b0bc;--card:#0a0a0a;--card-hover:#1a1a1a;--hair:#2c313b;--menu:#0a0a0a;--tint:var(--blue);
  --accent:var(--blue-lt);--accent-ink:#ffffff;--plot-bg:#121212;--chart-blue:var(--blue-lt);--series-1:var(--blue-lt);--series-2:#9fb0c9;
  --ndr-plot:#0a0a0a;--ndr-grid:#2c313b;--ndr-axis:#ffffff;--ndr-axis-soft:#a9b6cc;--ndr-navy:#ffffff;--ndr-slate:#9fb0c9;
}
html:root[data-theme="light"]{
  --bg:#f5f7fb;--ink:#14284b;--muted:#56657d;--card:#ffffff;--card-hover:#e9eff8;--tint:#e1e9f5;--hair:#d3dbe7;--menu:#ffffff;
  --accent:#2c5aa0;--accent-ink:#ffffff;--plot-bg:#f1f4f9;--chart-blue:#6f93d6;--series-1:#14284b;--series-2:#6f93d6;
  --ndr-plot:#ffffff;--ndr-grid:#d3dbe7;--ndr-axis:#14284b;--ndr-axis-soft:#56657d;--ndr-navy:#14284b;--ndr-slate:#6f93d6;
  --panel-shadow:none;
}
html:root body,html:root body *{font-family:var(--disp)!important}
html:root body :is(.ex-q,.qa-block > div:first-child > span:last-child,.hero h1,.ix-q,.dk-chap-cur span){font-family:var(--ser)!important}
body::before{display:none}
body{-webkit-font-smoothing:antialiased}
::selection{background:var(--blue);color:#fff}

/* TOP BAR: always black. The menus are replaced by the full-screen index. */
html:root body .sitenav{
  position:sticky;top:0;z-index:60;display:flex;align-items:stretch;justify-content:space-between;
  height:56px;max-width:none;margin:0;padding:0 0 0 24px;
  background:var(--black)!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  backdrop-filter:none;-webkit-backdrop-filter:none;
}
html:root body .sitenav .brand{display:flex;align-items:center;color:#fff;font-size:17px;font-weight:400;font-stretch:75%;text-transform:none;letter-spacing:0}
html:root body .sitenav :is(.navlinks,.nav-toggle){display:none!important}
html:root body .sitenav .navright{display:flex;align-items:stretch;gap:0;height:100%}
html:root body .sitenav .navright .navabout{display:flex!important;align-items:center;padding:0 20px;color:#fff;font-size:13px;font-weight:400;font-stretch:80%;letter-spacing:0;text-transform:none;border-radius:0}
html:root body .sitenav .navright .navabout:hover{background:#fff;color:var(--black)}
html:root body .sitenav .theme-toggle{width:56px;height:100%;border:0;border-left:1px solid #2c2c2c;border-radius:0;color:#fff;background:none}
html:root body .sitenav .theme-toggle:hover{background:#fff;color:var(--black)}
.ix-open{order:3;display:flex;align-items:center;gap:12px;padding:0 24px;border:0;background:var(--blue);color:#fff;font-size:14px;font-weight:400;font-stretch:80%;letter-spacing:0;text-transform:none;cursor:pointer;transition:background .15s,color .15s}
.ix-open:hover{background:#fff;color:var(--black)}
.ix-open kbd{font-size:11px;font-weight:400;letter-spacing:.04em;padding:2px 6px;border:1px solid currentColor;opacity:.75}
html:root body .sitenav .navright .navabout{order:1}
html:root body .sitenav .theme-toggle{order:2}
@media (max-width:600px){
  html:root body .sitenav{padding-left:14px}
  html:root body .sitenav .brand{font-size:14px}
  html:root body .sitenav .navright .navabout,.ix-open kbd{display:none!important}
  .ix-open{padding:0 16px}
  html:root body .sitenav .theme-toggle{width:46px}
}

/* FULL-SCREEN INDEX */
html.ix-lock{overflow:hidden}
.ix{position:fixed;inset:0;z-index:300;display:none;flex-direction:column;background:var(--blue);color:#fff}
.ix.open{display:flex;animation:ix-in .28s cubic-bezier(.2,.8,.2,1)}
@keyframes ix-in{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}
.ix-top{display:flex;align-items:stretch;border-bottom:1px solid rgba(255,255,255,.4);flex:none}
.ix-top input{flex:1;min-width:0;padding:18px 32px;border:0;background:none;color:#fff;font-size:clamp(22px,2.2vw,30px);font-weight:400;font-stretch:75%;text-transform:none;letter-spacing:0;outline:none}
.ix-top input::placeholder{color:rgba(255,255,255,.45)}
.ix-close{width:72px;border:0;border-left:1px solid rgba(255,255,255,.4);background:none;color:#fff;font-size:32px;font-weight:300;cursor:pointer}
.ix-close:hover{background:#fff;color:var(--blue)}
.ix-body{flex:1;overflow-y:auto;display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:0 56px;padding:48px 32px 60px}
.ix-col h2{margin:0 0 10px;font-size:12px;font-weight:400;font-stretch:80%;letter-spacing:.1em;text-transform:uppercase;padding-bottom:14px;border-bottom:1px solid #fff}
.ix-group{display:grid;grid-template-columns:170px 1fr;align-content:start;gap:0 18px;padding:16px 0;border-bottom:1px solid rgba(255,255,255,.35)}
.ix-group h3{margin:0;padding-top:9px;font-size:11px;font-weight:400;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.72)}
.ix-group h3 ~ .ix-row{grid-column:2}
.ix-row{display:grid;grid-template-columns:34px 1fr;gap:0 10px;align-items:baseline;padding:7px 10px 8px;color:#fff;text-decoration:none}
.ix-n{font-size:11px;font-weight:400;opacity:.6;font-variant-numeric:tabular-nums}
.ix-t{font-size:clamp(18px,1.5vw,22px);font-weight:400;font-stretch:75%;text-transform:none;line-height:1.2;letter-spacing:0}
.ix-q{grid-column:2;font-size:15px;line-height:1.35;opacity:.8;margin-top:3px}
.ix-row:hover,.ix-row.on{background:#fff;color:var(--blue)}
.ix-about{grid-column:1/-1;margin-top:26px;color:#fff;font-size:13px;font-weight:400;letter-spacing:0;text-transform:none;text-decoration:none}
.ix-about:hover{text-decoration:underline}
@media (max-width:900px){.ix-body{grid-template-columns:1fr;padding:18px 16px 50px}.ix-col + .ix-col{margin-top:30px}.ix-group{grid-template-columns:1fr}.ix-group h3{padding:0 0 4px}.ix-group h3 ~ .ix-row{grid-column:1}.ix-top input{padding:16px}.ix-close{width:64px}}

/* CHAPTER BAR */
.dk-chap{position:fixed;left:0;right:0;top:var(--dk-navh);z-index:50;background:var(--bg);border-bottom:2px solid var(--ink);transform:translateY(-110%);transition:transform .25s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.dk-chap.on{transform:none;pointer-events:auto}
.dk-chap-in{display:flex;align-items:stretch;height:46px;padding-left:24px}
.dk-chap button{background:none;border:0;color:var(--ink);cursor:pointer;padding:0}
.dk-chap-title{flex:none;padding-right:20px!important;font-size:13px;font-weight:400;font-stretch:78%;letter-spacing:0;text-transform:none;white-space:nowrap;border-right:1px solid var(--hair)!important}
.dk-chap-cur{display:flex;align-items:center;gap:14px;min-width:0;flex:1;padding:0 20px!important;text-align:left}
.dk-chap-cur b{flex:none;font-size:12px;font-weight:400;color:var(--accent);font-variant-numeric:tabular-nums;letter-spacing:.06em}
.dk-chap-cur span{font-size:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dk-chap-cur i{font-style:normal;font-size:11px;transition:transform .2s}
.dk-chap.menu .dk-chap-cur i{transform:rotate(180deg)}
.dk-chap .dk-chap-step{flex:none;width:46px;border-left:1px solid var(--hair)!important;font-size:17px}
.dk-chap .dk-chap-step:hover,.dk-chap-title:hover{background:var(--ink)!important;color:var(--bg)!important}
.dk-chap-menu{display:none;list-style:none;margin:0;padding:10px 24px 18px;max-height:62vh;overflow-y:auto;counter-reset:c;columns:2 340px;column-gap:40px;border-top:1px solid var(--hair)}
.dk-chap.menu .dk-chap-menu{display:block}
.dk-chap-menu li{break-inside:avoid;counter-increment:c}
.dk-chap-menu button{display:flex;gap:14px;width:100%;text-align:left;padding:8px 8px!important;font-size:15px;font-weight:400}
.dk-chap-menu button::before{content:counter(c,decimal-leading-zero);font-size:11.5px;font-weight:400;color:var(--muted);padding-top:2px;font-variant-numeric:tabular-nums}
.dk-chap-menu button:hover{background:var(--ink);color:var(--bg)}
.dk-chap-menu button.on{color:var(--accent)}
.dk-chap-prog{position:absolute;left:0;right:0;bottom:-2px;height:4px;background:var(--blue);transform-origin:left;transform:scaleX(0)}
@media (max-width:760px){.dk-chap-title{display:none}.dk-chap-in{padding-left:0}.dk-chap-cur{padding:0 14px!important}.dk-chap-cur span{font-size:18px}}

/* CONTENT PAGE COVER: the header is a full-bleed blue band */
html:root body .container{padding-top:0;max-width:1400px}
html:root body .header{
  --ink:#fff;--muted:rgba(255,255,255,.8);--accent:#fff;--hair:rgba(255,255,255,.4);
  display:block;color:#fff;background:var(--blue);box-shadow:0 0 0 100vmax var(--blue);clip-path:inset(0 -100vmax);
  border:0;margin:0 0 44px;padding:54px 0 30px;
}
html:root body .header > div:first-child{display:block}
html:root body .pathline{font-size:12px;font-weight:400;letter-spacing:.1em;text-transform:uppercase;margin-bottom:14px;color:#fff!important}
html:root body .container h1{font-size:clamp(30px,3.4vw,48px);font-weight:400;font-stretch:80%;line-height:1.12;letter-spacing:0;text-transform:none;color:#fff!important;margin:0;text-wrap:balance}
html:root body .subtitle{font-size:17px;line-height:1.45;margin-top:18px;max-width:900px!important;color:rgba(255,255,255,.86)}
html:root body .header :is(.updated,.header-meta,.coverage-note){color:rgba(255,255,255,.8);font-size:12px;font-weight:400;letter-spacing:.08em;text-transform:uppercase;align-items:flex-start;text-align:left;margin-top:16px}
html:root body .header a{color:#fff}

html:root body .qa-block{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:0 44px;margin:36px 0 0;padding:24px 0 0;border:0!important;border-top:2px solid #fff!important;max-width:none}
html:root body .qa-block > div{display:block;font-size:17px;line-height:1.55}
html:root body .qa-block > div:first-child > span:last-child{display:block;font-size:clamp(22px,2.2vw,32px);line-height:1.2;letter-spacing:0}
html:root body .qa-label,html:root body .ml-label{display:block;font-size:11px;font-weight:400;letter-spacing:.1em;margin-bottom:10px;padding:0;color:#fff!important;opacity:.85}
html:root body .method-limits{margin-top:22px}
html:root body .method-limits summary{font-weight:400;letter-spacing:.2em;color:#fff}
html:root body .method-limits .ml-rows{border-left:0;padding:6px 0 0;gap:0}
html:root body .method-limits .ml-rows > div{grid-template-columns:170px 1fr;padding:10px 0;border-top:1px solid rgba(255,255,255,.4);font-size:15px}
@media (max-width:820px){
  html:root body .qa-block{grid-template-columns:1fr;gap:22px}
  html:root body .method-limits .ml-rows > div{grid-template-columns:1fr}
  html:root body .header{padding:36px 0 24px}
}

/* FIGURES: hard-edged panels under a thick rule */
html:root body :is(.chart-box,.table-box,.scatter-box,.explainer,.commentary){
  background:var(--bg);border:0;border-top:3px solid var(--ink);border-radius:0;box-shadow:none!important;padding:18px 0 0;margin-bottom:64px;
}
html:root body :is(.chart-box,.table-box,.scatter-box) :is(.chart-box,.table-box,.scatter-box){border-top-width:2px;margin-bottom:30px}
html:root body :is(.chart-box-header,.table-box-header) h2,html:root body :is(.explainer,.commentary) :is(h2,h3){font-size:clamp(20px,1.7vw,26px);font-weight:400;font-stretch:76%;line-height:1.2;letter-spacing:0;text-transform:none}
html:root body .chart-subhead{font-size:14px;margin-top:6px;color:var(--muted)}
html:root body .chart-note{font-size:14.5px;line-height:1.5}
html:root body :is(.ndr-panel,.stack-panel){border-radius:0}
html:root body :is(.explainer,.commentary) p{font-size:17px;line-height:1.6;color:var(--ink);max-width:980px!important}

html:root body :is(.stat-grid,.mini-stats){background:var(--bg);border:0;border-top:3px solid var(--ink);border-bottom:2px solid var(--ink);border-radius:0;box-shadow:none!important}
html:root body :is(.stat-card,.mini-stat){padding:16px 18px 18px}
html:root body :is(.stat-label,.mini-stat-label){font-size:11px;font-weight:400;letter-spacing:.08em;text-transform:uppercase}
html:root body .stat-value,html:root body .mini-stat-value{font-size:26px!important;font-weight:400;font-stretch:100%;line-height:1.1;letter-spacing:0}
html:root body .stat-value:is(.txt,.stat-value-text){font-size:22px!important}

html:root body :is(.range-btn,.toggle-btn,.view-tab,.seg button){border-radius:0;border:1.5px solid var(--ink);background:var(--bg);color:var(--ink);font-weight:400;font-size:12px;letter-spacing:0;text-transform:none}
html:root body :is(.range-btn,.toggle-btn,.view-tab,.seg button):hover{background:var(--ink);color:var(--bg)}
html:root body :is(.range-btn.active,.toggle-btn.active,.view-tab.active,.seg button[aria-pressed="true"]){background:var(--blue)!important;border-color:var(--blue)!important;color:#fff!important}
html:root body :is(.range-controls,.toggle-group,.seg){border-radius:0;gap:0}
html:root body :is(.range-controls,.toggle-group) > * + *{margin-left:-1.5px}
html:root body :is(select,input[type="text"],input[type="search"],input[type="number"]){border-radius:0}
html:root body :is(.warning-banner,.error-banner,.badge){border-radius:0}

/* Table headers stay on the page background with a heavy rule under them. An inverted
   header hid cells that carry their own text or fill color (heat maps, sort markers). */
html:root body thead th{font-size:11px;font-weight:400;letter-spacing:.08em;text-transform:uppercase;border-bottom:2px solid var(--ink)}
html:root body tbody td{font-variant-numeric:tabular-nums;border-bottom:1px solid var(--hair)}
/* Side-by-side tables share the row evenly and scroll inside their own column. */
html:root body :is(.stat-grid,.chart-grid,.table-grid,.scatter-grid,.leaderboard-grid) > *{min-width:0}
html:root body .leaderboard-col{overflow-x:auto}
@media (max-width:720px){html:root body table.datatable{display:block;width:auto;min-width:0!important;max-width:100%;overflow-x:auto;contain:inline-size}}
html:root body .container button.active{background:var(--blue)!important;border-color:var(--blue)!important;color:#fff!important}
html:root body .source{font-size:12px;font-weight:400;letter-spacing:.04em}

/* PREVIOUS / NEXT: two full-bleed blocks */
.dk-prevnext{display:grid;grid-template-columns:1fr 1fr}
.dk-pn{display:flex;flex-direction:column;justify-content:space-between;gap:38px;min-height:150px;padding:24px 32px;text-decoration:none;font-size:clamp(22px,2.2vw,32px);font-weight:400;font-stretch:80%;line-height:1.15;text-transform:none;transition:background .2s,color .2s}
.dk-pn.prev{background:var(--ink);color:var(--bg)}
.dk-pn.next{background:var(--blue);color:#fff;text-align:right;align-items:flex-end}
.dk-pn:only-child{grid-column:1/-1}
.dk-pn-arrow{font-size:.62em;font-weight:400;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.dk-pn.next:hover .dk-pn-arrow{transform:translateX(14px)}
.dk-pn.prev:hover .dk-pn-arrow{transform:translateX(-14px)}
.dk-pn.next:hover{background:var(--ink);color:var(--bg)}
.dk-pn.prev:hover{background:var(--blue);color:#fff}
@media (max-width:700px){.dk-prevnext{grid-template-columns:1fr}.dk-pn{min-height:150px;padding:22px 16px}}

html:root body footer{background:var(--black);color:#fff;border:0;text-align:left;padding:26px 32px;font-size:12px;font-weight:400;letter-spacing:0;text-transform:none}
html:root body footer a{color:#fff}
html:root body footer .footlink{right:32px}
@media (prefers-reduced-motion:reduce){.ix.open{animation:none}.dk-chap,.dk-pn-arrow{transition:none}}

/* SENTIMENT INDEX: its panels follow the figure style above. The fear-to-greed color scale is
   a data encoding and stays (see .sentiment-palette near the top). */
html.sentiment-palette body :is(.hero,.score-box,.card,.hist-chip,.chart,.insight,.modal-stat,.calc-box,.chart-fullscreen-btn,.bar,.error-banner){border-radius:0}
html.sentiment-palette body :is(.hero,.insight){background:var(--bg);border:0;border-top:3px solid var(--ink);padding:22px 0 0;box-shadow:none}
html.sentiment-palette body .insight{margin-top:44px}
html.sentiment-palette body :is(.card,.hist-chip){background:var(--bg);border:0;border-top:2px solid var(--ink);padding:16px 0 18px}
html.sentiment-palette body .card-supp{border-top-style:dashed}
html.sentiment-palette body .card:hover{background:var(--card-hover)}

/* ONE GROUND (since 2026-11-20): page headers, previous/next and the footer sit on the page
   background and follow the theme. Only the ticker keeps a navy band. */
html:root body .header{--ink:inherit;--muted:inherit;--accent:inherit;--hair:inherit;color:var(--ink);background:none;box-shadow:none;clip-path:none;padding:44px 0 26px;border-bottom:3px solid var(--ink)}
html:root body :is(.pathline,.qa-label,.ml-label){color:var(--accent)!important;opacity:1}
html:root body .container h1{color:var(--ink)!important}
html:root body .subtitle{color:var(--muted)}
html:root body .header :is(.updated,.header-meta,.coverage-note){color:var(--muted)}
html:root body .header a{color:var(--accent)}
html:root body .qa-block{border-top:1px solid var(--hair)!important}
html:root body .method-limits summary{color:var(--ink)}
html:root body .method-limits .ml-rows > div{border-top-color:var(--hair)}
.dk-prevnext{border-top:3px solid var(--ink)}
.dk-pn:is(.prev,.next){background:var(--bg);color:var(--ink)}
.dk-pn.prev{border-right:1px solid var(--hair)}
.dk-pn-arrow{color:var(--accent)}
.dk-pn:is(.prev,.next):hover{background:var(--card-hover);color:var(--ink)}
@media (max-width:700px){.dk-pn.prev{border-right:0;border-bottom:1px solid var(--hair)}}
html:root body footer{background:var(--bg);color:var(--muted);border-top:1px solid var(--hair)}
html:root body footer a{color:var(--ink)}

/* Light mode is navy on white: the top bar turns navy, with a hairline over the ticker. */
html:root[data-theme="light"] body .sitenav{background:var(--blue)!important}
html:root[data-theme="light"] body .sitenav .theme-toggle{border-left-color:rgba(255,255,255,.18)}
html:root[data-theme="light"] body .ix-open{background:#2c5aa0}
html:root[data-theme="light"] body .ticker-wrap{border-top:1px solid rgba(255,255,255,.18)!important}
html:root[data-theme="light"] body .header{background:var(--tint);box-shadow:0 0 0 100vmax var(--tint);clip-path:inset(0 -100vmax);border-bottom:0;padding-bottom:34px}
html:root[data-theme="light"] body .dk-pn.next{background:var(--tint)}
html:root[data-theme="light"] body .dk-pn:is(.prev,.next):hover{background:#d3deef}
html:root[data-theme="light"] body footer{background:var(--blue);color:rgba(255,255,255,.8);border:0}
html:root[data-theme="light"] body footer a{color:#fff}

/* Dark mode is black and navy: black page, bar and footer, navy bands where light mode has its pale blue ones. */
html:root:not([data-theme="light"]) body .sitenav .theme-toggle{border-left-color:rgba(255,255,255,.14)}
html:root:not([data-theme="light"]) body .header{background:var(--tint);box-shadow:0 0 0 100vmax var(--tint);clip-path:inset(0 -100vmax);border-bottom:0;padding-bottom:34px}
html:root:not([data-theme="light"]) body .dk-pn.next{background:var(--tint)}
html:root:not([data-theme="light"]) body .dk-pn:is(.prev,.next):hover{background:#1f3a66}
html:root:not([data-theme="light"]) body footer{background:var(--black);color:rgba(255,255,255,.75);border:0}
html:root:not([data-theme="light"]) body footer a{color:#fff}

/* Section names in the top bar open the full-screen index; the menu icon replaces the "Index" label. */
.ix-sec{order:-1;display:flex;align-items:center;padding:0 18px;border:0;background:none;color:#fff;font-size:13px;font-weight:400;font-stretch:80%;cursor:pointer}
.ix-sec:hover{background:#fff;color:var(--black)}
.ix-open{padding:0 22px}
.ix-burger{display:inline-flex;flex-direction:column;gap:5px}
.ix-burger i{display:block;width:22px;height:1.5px;background:currentColor}
@media (max-width:600px){.ix-sec{display:none}}
.ix-body{padding-left:max(32px,3vw);padding-right:max(32px,3vw)}
.ix-top input{padding-left:max(32px,3vw)}
/* One section on its own spreads its groups over two columns so the screen isn't half empty. */
.ix-body.one{grid-template-columns:minmax(0,1fr)}
.ix-body.one .ix-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 56px;align-content:start}
.ix-body.one .ix-col h2{grid-column:1/-1}
@media (max-width:900px){.ix-body,.ix-top input{padding-left:16px;padding-right:16px}.ix-body.one .ix-col{grid-template-columns:minmax(0,1fr)}}

/* Performance heat maps (scorecard, international, seasonality, sector rotation). Light mode uses
   stronger hues and more opacity because the pale tints washed out on the light page. */
html:root:not([data-theme="light"]){--heat-up:var(--up);--heat-down:var(--down);--heat-max:.55}
html:root[data-theme="light"]{--heat-up:#1f9a4c;--heat-down:#d8343f;--heat-max:.82}
