/* Load last, after brand.css. Only the switch and compact header fit affect dark mode. */
body .site-header #theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:12px;border:0;background:transparent;color:inherit;cursor:pointer}
#theme-toggle svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;pointer-events:none}
#theme-toggle[aria-pressed=true]{color:var(--mint)}
#theme-toggle:focus-visible{outline:2px solid var(--eq-icon-active);outline-offset:2px}
/* Keep the settings glyph inside its existing 44px target on phones too. */
body .site-header .accessibility-menu>summary .settings-cog{display:block;flex:0 0 18px;width:18px;height:18px;fill:currentColor!important;stroke:none!important;pointer-events:none}
#theme-wash{position:fixed;inset:0;z-index:2147483646;pointer-events:none;background:#faf7ef;opacity:0;contain:strict}
/* Keep all original links and Options visible; no second navigation row at 390px. */
@media(max-width:700px){
 body .site-header{gap:2px;flex-wrap:nowrap;padding-inline:max(10px,env(safe-area-inset-left,0px)) max(10px,env(safe-area-inset-right,0px))}
 body .site-header .brand img{width:72px}
 body .site-header .header-links{gap:0;flex-wrap:nowrap;min-width:0}
 body .site-header .header-links :is(a,button),body .site-header .mobile-options summary{font-size:11px;padding-inline:5px;white-space:nowrap}
 body .site-header .mobile-options summary::after{margin-inline-start:2px;width:12px;min-width:12px;flex-basis:12px}
}
@media(max-width:360px){
 body .site-header .brand img{width:54px}
 body .site-header .header-links :is(a,button),body .site-header .mobile-options summary{font-size:10px;padding-inline:3px}
}
@media(max-width:310px){body .site-header .brand img{width:42px}body .site-header{gap:0;padding-inline:4px}}

html[data-theme=light]{color-scheme:light;--bg:#fff;--text:#172124;--muted:#47585e;--mint:#12695f;--line:#18383c29;--eq-icon-idle:#526568;--eq-icon-active:#12695f;background:#fff;color:var(--text)}
html[data-theme=light] body{background:#fff;color:var(--text);color-scheme:light}
html[data-theme=light] body[data-view=thesis]{--thesis-accent:#12695f}
html[data-theme=light] body[data-view=thesis] .site-header{background:#fff!important;box-shadow:none}
html[data-theme=light] body .site-header{background:rgba(255,255,255,.94)!important;color:var(--text)!important;border-bottom-color:var(--line);box-shadow:none}
html[data-theme=light] body .site-header .section-switch a{opacity:1;color:var(--muted)}
html[data-theme=light] body .site-header .section-switch a:is(:hover,:focus-visible,.is-active,[aria-current=page]){color:var(--text)}
html[data-theme=light] .options-panel{background:#fffffff7;border-color:var(--line);color:var(--text)}
html[data-theme=light] .search-panel{background:transparent;border-color:var(--line);color:var(--text)}
html[data-theme=light] .search-form #search-submit{color:var(--text)}
html[data-theme=light] .search-form #search-submit:hover{color:var(--mint)}
html[data-theme=light] .search-form button svg,html[data-theme=light] .search-form button svg *{color:inherit}
html[data-theme=light] :is(input,select){background:#fff;color:var(--text)}
html[data-theme=light] .skip-link{background:var(--mint);color:#fff}
html[data-theme=light] :is(.collection,.polish-backdrop){background-color:#fff}
/* Logo-only silhouette treatment. Never filter film, posters, pictures or their ancestors. */
html[data-theme=light] .brand img{filter:brightness(0) saturate(100%)!important}
html[data-theme=light] :is(.company-logo,.rail-logo,.poster-logo):not(.plate){filter:brightness(0)!important}
html[data-theme=light] :is(.company-logo.plate,.rail-logo.plate,.poster-logo.plate){filter:none!important;background:#eff2ee}
/* Cinematic surfaces keep light ink with a lighter black fade in light mode. */
html[data-theme=light] body[data-view=company] :is(.company-profile,.company-rail){--text:#eff2ee;--muted:#d4dcd5;--mint:#8ed9ca;--eq-icon-idle:#d4dcd5;--eq-icon-active:#8ed9ca;color:var(--text)}
html[data-theme=light] body[data-view=company] :is(.company-logo,.rail-logo):not(.plate){filter:brightness(0) invert(1)!important}
html[data-theme=light] body[data-view=company] :is(.film-stage,.polish-backdrop){background-color:#080b0b}
html[data-theme=light] body[data-view=company] :is(.film-stage,.editorial-backdrop,.polish-backdrop):after{background:linear-gradient(90deg,rgba(0,0,0,.64),rgba(0,0,0,.26) 40%,transparent 75%),linear-gradient(0deg,rgba(0,0,0,.48),transparent 26%)}
html[data-theme=light] #main.is-expanded .profile-section .view-scroll{background:linear-gradient(90deg,rgba(3,19,33,.85),rgba(3,19,33,.65) 65%,transparent)}
/* Poster art stays cinematic in either theme; list logos retain light-theme ink. */
html[data-theme=light] .collection .company-poster{background-color:#141b18;color:#f4f5f2}
html[data-theme=light] .collection .company-poster:before{background:linear-gradient(0deg,rgba(3,8,10,.96),rgba(3,8,10,.62) 30%,rgba(3,8,10,.12) 65%,transparent)}
html[data-theme=light] .collection .company-poster .poster-logo:not(.plate){filter:brightness(0) invert(1)!important}
html[data-theme=light] .collection .company-poster .poster-title{color:#f4f5f2}
html[data-theme=light] .collection .company-poster .poster-description{color:#d4dcd5!important}
/* A pale-page focus ring alone disappears against a dark poster. */
html[data-theme=light] .collection .company-poster:focus-visible{outline:2px solid var(--mint);outline-offset:3px;box-shadow:inset 0 0 0 2px #eff2ee}
html[data-theme=light] body :is(.search-form,.search-panel.is-open .search-form):focus-within{outline:2px solid var(--mint);outline-offset:2px}
html[data-theme=light] body .search-field input:focus-visible{outline:0}
html[data-theme=light] body .site-header .accessibility-menu .options-panel button:focus-visible{outline:2px solid var(--mint);outline-offset:-2px;background:rgba(18,105,95,.10)}
html[data-theme=light] .collection .category-filters a:is(:hover,:focus-visible,[aria-current]){background:rgba(18,105,95,.08);color:var(--mint)}
html[data-theme=light] .hero-copy h1{text-shadow:none}
html[data-theme=light] .view-scroll{scrollbar-color:#687e82 transparent}
html[data-theme=light] body[data-view=company] .view-scroll{scrollbar-color:#d4dcd5 transparent}
html[data-theme=light] :is(.focus-teaser>.eyebrow,.teaser-copy,.scene-thought,.scene-description,.fact-label,.scene-full p:not(.eyebrow),.poster-description,.official-website,.depth-control,.depth-toggle){color:var(--muted)!important}
html[data-theme=light] body[data-view=company] .profile-hero :is(.hero-tagline,.hero-copy>.hero-description){color:var(--muted)!important}
html[data-theme=light] #main .profile-section:is(.profile-overview,.profile-stories,.profile-perspective) :is(h2,h3){color:var(--text)!important}
html[data-theme=light] #main .profile-section:is(.profile-overview,.profile-stories,.profile-perspective) :is(.eyebrow,.page-count,.section-heading,.story-copy>p,.perspective-page>p:not(.eyebrow),.scene-full p:not(.eyebrow),.view-pager button){color:var(--muted)!important}
html[data-theme=light] body .section-nav a[aria-current],html[data-theme=light] body[data-view=company] .profile-hero .hero-modes a[aria-current]{color:var(--mint)}
@media(max-width:700px){
 html[data-theme=light] body[data-view=company] :is(.film-stage,.editorial-backdrop,.polish-backdrop):after{background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.42) 60%,rgba(0,0,0,.10)),linear-gradient(0deg,rgba(0,0,0,.50),transparent 26%)}
}

/* Thesis: explicit surfaces include outgoing scenes, discovery and every dive. */
html[data-theme=light] body[data-view=thesis] :is(.thesis-shell,.thesis-scroll.thesis-outgoing,.thesis-hero,.thesis-picture,.thesis-hero-editorial,.thesis-process-nav,.thesis-hero-discovery,.thesis-process,.thesis-data,.thesis-dives,.thesis-continuation){background:#fff!important}
html[data-theme=light] body[data-view=thesis] :is(.thesis-dive,.thesis-dive-body,.thesis-dive-layout,.thesis-dive-analysis,.thesis-dive-figure,.thesis-evidence,.thesis-figure,.thesis-plot){background-color:#fff;color:var(--text)}
html[data-theme=light] body[data-view=thesis] .thesis-scroll{scrollbar-color:#687e82 #fff}
html[data-theme=light] body[data-view=thesis] .thesis-rail{background:#fffffff5;box-shadow:inset 0 1px var(--line);border-color:var(--line)}
html[data-theme=light] body[data-view=thesis] .thesis-depths{box-shadow:inset 1px 0 var(--line)}
html[data-theme=light] body[data-view=thesis] :is(.thesis-data,.thesis-dives,.thesis-continuation,.thesis-dive,.thesis-dive-watch,.thesis-process-labels,.thesis-process-labels li,.thesis-process-step){border-color:var(--line)}
html[data-theme=light] body[data-view=thesis] .thesis-process-step::before{background:#fff;border-color:var(--thesis-accent)}
html[data-theme=light] body[data-view=thesis] .thesis-process-step:last-child{border-left-color:transparent}
html[data-theme=light] body[data-view=thesis] :is(.thesis-heading,.thesis-section-heading,.thesis-figure-heading,.thesis-next-title,.thesis-dive-title,.thesis-dive-value,.thesis-process-step h3,.thesis-dive-analysis h4,.thesis-dive-figure h3,.thesis-continuation a){color:var(--text)!important}
html[data-theme=light] body[data-view=thesis] :is(.thesis-paragraphs,.thesis-process-note,.thesis-process-step p,.thesis-metric-label,.thesis-units,.thesis-annotations,.thesis-row-notes,.thesis-basis,.thesis-eyebrow,.thesis-process-number,.thesis-process-labels button,.thesis-scroll-invitation,.thesis-updated,.thesis-rail a,.thesis-continuation p,.thesis-dive-links-label,.thesis-dive-stat small,.thesis-dive-standfirst,.thesis-dive-analysis p,.thesis-dive-scale,.thesis-dive-assumptions,.thesis-dive-row-status,.thesis-dive-row-label,.thesis-dive-sequence li,.thesis-dive-watch,.thesis-dive-basis){color:var(--muted)!important}
html[data-theme=light] body[data-view=thesis] :is(.thesis-metric,.thesis-dive-stat,.thesis-dive-stat>span,.thesis-dive-status,.thesis-dive-links button,.thesis-dive-watch>span,.thesis-scroll-invitation span,.thesis-next-title span){color:var(--thesis-accent)!important}
html[data-theme=light] body[data-view=thesis] :is(.thesis-dive-topic,.thesis-valuations>.thesis-dives-inner>h2){color:#735831!important}
html[data-theme=light] body[data-view=thesis] :is(.thesis-rail a[aria-current],.thesis-rail a:hover,.thesis-scroll-invitation:hover,.thesis-process-labels button:hover,.thesis-dive-links button:hover){color:var(--thesis-accent)!important}
html[data-theme=light] body[data-view=thesis] .thesis-dive-bar-track{background:#e6eeed;border-color:#617779}
html[data-theme=light] body[data-view=thesis] .thesis-dive-bar-track span{background:#12695f!important}
html[data-theme=light] body[data-view=thesis] .thesis-valuations .thesis-dive-bar-track::before{background:#617779}
html[data-theme=light] body[data-view=thesis] .thesis-dive-sequence li{border-color:#729c97}
html[data-theme=light] body[data-view=thesis] .thesis-dive-sequence li:last-child{border-color:transparent}
html[data-theme=light] body[data-view=thesis] .thesis-dive-sequence li::before,html[data-theme=light] body[data-view=thesis] .thesis-rail::before{background:var(--thesis-accent)}
/* Light Thesis: white editorial surfaces, unwashed art and crisp seams. */
html[data-theme=light] body[data-view=thesis] .thesis-mask{display:none!important;background:none!important}
html[data-theme=light] body[data-view=thesis] .thesis-shell .thesis-process-nav::before{content:none!important;display:none!important;background:none!important}
/* Keep the supplied scene heights, source crops and intrinsic copy rows. */
html[data-theme=light] body[data-view=thesis] #main .thesis-shell .thesis-hero.thesis-scene{row-gap:0}
html[data-theme=light] body[data-view=thesis] #main .thesis-shell .thesis-hero.thesis-scene .thesis-picture{background:#030405!important}
html[data-theme=light] body[data-view=thesis] #main .thesis-shell .thesis-hero.thesis-scene .thesis-process-nav{margin:0;padding-top:16px}
/* Wide side-copy chapters: the image occupies only its own right column.
   No image beneath the white copy and no feathered transition between them. */
@media(min-width:1100px){
 html[data-theme=light] body[data-view=thesis] #main .thesis-shell .thesis-hero:is(.thesis-scene-economics,.thesis-scene-physical){column-gap:0}
 html[data-theme=light] body[data-view=thesis] #main .thesis-shell .thesis-hero:is(.thesis-scene-economics,.thesis-scene-physical) .thesis-picture{grid-column:2;grid-row:1;min-width:0}
 html[data-theme=light] body[data-view=thesis] #main .thesis-shell .thesis-hero:is(.thesis-scene-economics,.thesis-scene-physical) .thesis-hero-editorial{grid-column:1;grid-row:1;padding-block:32px;background:#fff!important}
}
@media(max-width:600px){
 html[data-theme=light] body[data-view=thesis] #main .thesis-shell .thesis-hero.thesis-scene .thesis-process-nav{margin:0;padding-top:12px}
}
/* Supplied chart-source palette: teal, ochre and neutral grey.
   Map only known paints; leave none, transparent, unknown paints and opacity intact.
   Inline selectors match the stroke declarations emitted by chart-source. */
html[data-theme=light] .thesis-chart{color:#172124;background:transparent}
html[data-theme=light] body[data-view=thesis] .thesis-chart text{fill:#35494e!important}
html[data-theme=light] .thesis-chart [fill='#65cfc5']:not([style]){fill:#12695f}
html[data-theme=light] .thesis-chart [fill='#c9ac7e']:not([style]){fill:#8a5b22}
html[data-theme=light] .thesis-chart [fill='#aeb7be']:not([style]){fill:#626262}
html[data-theme=light] .thesis-chart [stroke='#65cfc5']:not([style]){stroke:#12695f}
html[data-theme=light] .thesis-chart [stroke='#c9ac7e']:not([style]){stroke:#8a5b22}
html[data-theme=light] .thesis-chart [stroke='#aeb7be']:not([style]){stroke:#626262}
html[data-theme=light] .thesis-chart [stroke='#a4afb8']:not([style]){stroke:#708489}
html[data-theme=light] .thesis-chart [style^='stroke:#65cfc5;']{stroke:#12695f!important}
html[data-theme=light] .thesis-chart [style^='stroke:#c9ac7e;']{stroke:#8a5b22!important}
html[data-theme=light] .thesis-chart [style^='stroke:#aeb7be;']{stroke:#626262!important}
html[data-theme=light] body[data-view=thesis] :is(.thesis-shell a,.thesis-shell button,.thesis-scroll):focus-visible{outline-color:var(--thesis-accent)}
html[data-theme=light] body[data-view=thesis] .thesis-continuation a:focus-visible .thesis-next-title,html[data-theme=light] body[data-view=thesis] .thesis-valuations>.thesis-dives-inner>h2:focus-visible{text-decoration-color:var(--thesis-accent)}
@media(prefers-reduced-motion:reduce){#theme-wash{display:none!important}}
@media(forced-colors:active){
 #theme-wash{display:none!important}
 html[data-theme=light]{--text:CanvasText;--muted:CanvasText;--mint:LinkText;--line:CanvasText;--eq-icon-idle:ButtonText;--eq-icon-active:Highlight}
 html[data-theme=light] body[data-view=thesis]{--thesis-accent:LinkText}
 html[data-theme=light] body[data-view=company] :is(.company-profile,.company-rail){--text:CanvasText;--muted:CanvasText;--mint:LinkText;--eq-icon-idle:ButtonText;--eq-icon-active:Highlight}
 html[data-theme=light] body .site-header .section-switch a{color:LinkText}
 html[data-theme=light] body .site-header .section-switch a:is(:hover,:focus-visible,.is-active,[aria-current=page]){color:LinkText}
 html[data-theme=light] .collection .company-poster{background:Canvas;color:CanvasText;box-shadow:none}
 html[data-theme=light] .collection .company-poster :is(.poster-title,.poster-description){color:CanvasText!important}
 html[data-theme=light] .collection .company-poster:before{background:none}
 html[data-theme=light] .collection .company-poster:focus-visible{outline-color:Highlight;box-shadow:none}
 html[data-theme=light] body :is(.search-form,.search-panel.is-open .search-form):focus-within{outline-color:Highlight}
 html[data-theme=light] body .site-header .accessibility-menu .options-panel button:focus-visible{outline-color:Highlight;background:Canvas}
 html[data-theme=light] .collection .category-filters a:is(:hover,:focus-visible,[aria-current]){background:Canvas;color:LinkText}
 html[data-theme=light] body,html[data-theme=light] body .site-header,html[data-theme=light] body[data-view=thesis] :is(.thesis-shell,.thesis-scroll.thesis-outgoing,.thesis-hero,.thesis-picture,.thesis-hero-editorial,.thesis-process-nav,.thesis-hero-discovery,.thesis-process,.thesis-data,.thesis-dives,.thesis-continuation,.thesis-rail,.thesis-dive,.thesis-dive-body,.thesis-dive-layout,.thesis-dive-analysis,.thesis-dive-figure,.thesis-evidence,.thesis-figure,.thesis-plot){background:Canvas!important}
 html[data-theme=light] :is(.brand img,.company-logo,.rail-logo,.poster-logo),html[data-theme=light] .collection .company-poster .poster-logo:not(.plate),html[data-theme=light] body[data-view=company] :is(.company-logo,.rail-logo):not(.plate){filter:none!important}
 html[data-theme=light] body[data-view=thesis] .thesis-chart text{fill:CanvasText!important}
 /* Allow native forced-colours adjustment without adding absent SVG paints. */
 html[data-theme=light] body[data-view=thesis] .thesis-dive-bar-track span{background:Highlight!important}
}

#theme-toggle .theme-label{font-size:12px;line-height:1;white-space:nowrap}
