/* Site-wide graphite and silver palette. Source diagrams keep their own colors. */
:root{--ease-inout-quart:cubic-bezier(.77,0,.175,1);--ease-spring:cubic-bezier(0.32,0.72,0,1);--dur-enter:500ms;--step:80ms;--card-radius:20px;--measure:68ch;--font-display:"Pixelify Sans",ui-monospace,monospace;--font-body:"Lato",system-ui,sans-serif;--font-data:"Inconsolata",ui-monospace,monospace;--ease-out:cubic-bezier(0.32, 0.72, 0, 1);--ease-standard:cubic-bezier(0.4, 0, 0.2, 1);--dur-press:100ms;--dur-hover:160ms;--dur-ui:240ms;--color-ink:#1f2a2a;--color-body:#34403d;--color-muted:#56625e;--color-surface-soft:#ece9df;--color-line:#dcd7c9;--color-line-strong:#c9c2b0;--color-primary:#2f5d50;--color-primary-strong:#234a3f;--color-primary-soft:#e2ebe4;--lab-bg:#f6f4ee;--lab-bg-soft:#ece9df;--lab-ink:#1f2a2a;--lab-muted:#56625e;--lab-dim:#5f6b67;--lab-line:rgba(31,42,42,.16);--lab-line-strong:rgba(31,42,42,.32);--lab-accent:#2f5d50;--lab-accent-hover:#234a3f;--lab-accent-soft:rgba(47,93,80,.1);--lab-shadow:0 24px 70px rgba(30,43,52,.1);--lab-card-shadow:0 16px 54px rgba(30,43,52,.08);--ink:#1f2a2a;--body:#34403d;--muted:#56625e;--line:#dcd7c9;--wash:#f6f4ee;--accent:#2f5d50;--focus:#2f5d50;--report-ink:#1f2a2a;--report-body:#34403d;--report-muted:#56625e;--report-blue:#2f5d50;--report-blue-soft:#e2ebe4;--report-line:#dcd7c9;--report-warm:#f6f4ee}
body.dark-mode{--lab-bg:#161514;--lab-bg-soft:#1b1a18;--lab-panel:rgba(32,31,29,.94);--lab-panel-solid:#201f1d;--lab-ink:#ece9e4;--lab-muted:#a8a29a;--lab-dim:#9a948c;--lab-line:rgba(214,208,199,.2);--lab-line-strong:rgba(214,208,199,.42);--lab-accent:#cf9265;--lab-accent-hover:#e3b08a;--lab-accent-soft:rgba(207,146,101,.13);--lab-on-accent:#161514;--ink:#ece9e4;--body:#d6d2cb;--muted:#a8a29a;--line:#3a3733;--surface:#201f1d;--wash:#161514;--accent:#cf9265;--mint:#2b2927;--focus:#e0a878;--report-ink:#ece9e4;--report-body:#d6d2cb;--report-muted:#a8a29a;--report-blue:#cf9265;--report-blue-soft:#32302d;--report-line:#3a3733;--report-surface:#201f1d;--report-warm:#161514;background:#161514;color:#d6d2cb}
body.dark-mode #navigation,body.dark-mode .researchNav{background:rgba(22,21,20,.96)}
body.dark-mode #heroSection{background:radial-gradient(circle at 83% 18%,rgba(207,146,101,.07),transparent 32%),linear-gradient(135deg,#161514,#1d1c1a)}
body.dark-mode #loadingScreen{background:linear-gradient(135deg,#161514,#1d1c1a)}
body.dark-mode .researchHero{background:none}
body.dark-mode .researchNavLinks button,body.dark-mode .researchSearch input {background:#201f1d;color:#ece9e4;border-color:#3a3733}
body.dark-mode .conceptFigure,body.dark-mode .leadFigureLink{background:#2b2927}
body.dark-mode .takeaway,body.dark-mode .worked,body.dark-mode .articleToc a:hover,body.dark-mode .researchFind:hover{background:#32302d}
body.dark-mode .caution{background:#38302a}
body.dark-mode .sourceFigure,body.dark-mode .researchFigure,body.dark-mode .demoVideo,body.dark-mode .reportHeroVisual,body.dark-mode .visualEvidenceItem{background:#201f1d;border-color:#3a3733}
body.dark-mode .licenseNote,body.dark-mode .decisionTable th{background:#2b2927;border-color:#3a3733;color:#cf9265}
body.dark-mode .chartTrack{background:#32302d}
body.dark-mode .reportHeroAction{background:#cf9265;border-color:#cf9265;color:#161514}
body.dark-mode .reportHeroAction:hover{background:#fff;color:#161514}
body.dark-mode :is(.reportTldrItem,.signalCard,.insightCard,.diagramPanel,.modelCard,.noteCard,.referenceItem,.chartPanel,.thoughtCard){background:#2b2927;border-color:#3a3733}
body.dark-mode :is(.callout,.fieldNote,.matrixCell[data-tone="strong"]){background:#32302d;border-color:#cf9265}
body.dark-mode .articleByline .authorMark{background:#32302d;color:#edf3f6}
body.dark-mode .findAskDialog,body.dark-mode .findAskTrigger,body.dark-mode .findAskFoot{background:#201f1d;color:#ece9e4;border-color:#3a3733}
body.dark-mode .findAskResults{background:#201f1d}
body.dark-mode .findAskForm input,body.dark-mode .findAskSuggestions button,body.dark-mode .findAskTrigger kbd{background:#2b2927;color:#ece9e4;border-color:#3a3733}
body.dark-mode .findAskSource:hover,body.dark-mode .findAskSource:focus-visible{background:#32302d}
body.dark-mode .findAskEyebrow,body.dark-mode .findAskLabel,body.dark-mode .findAskSource small,body.dark-mode .findAskClose{color:#cf9265}
body.dark-mode .findAskModes,body.dark-mode .findAskResults,body.dark-mode .findAskSource,body.dark-mode .findAskFoot{border-color:#3a3733}
body.dark-mode .findAskForm button{background:#cf9265;color:#161514}
body.dark-mode .findAskForm button:hover{background:#fff}
body.dark-mode .findAskLauncher{background:#201f1d;color:#ece9e4;border-color:#6a655f}
body.dark-mode .findAskLauncher:hover{background:#2b2927}
body:not(.dark-mode) .findAskLauncher{background:#e9edf0;color:#2b2927;border-color:#b9c5ce}
body:not(.dark-mode) .findAskLauncher small{color:#3a3733}
body:not(.dark-mode) .chatOverlay{background:#f8f9fa;color:#2b2927;border-color:#b9c5ce}
body:not(.dark-mode) .chatOverlayBar{background:#e9edf0;color:#2b2927;border-color:#c5d0d6}
body:not(.dark-mode) .chatOverlayActions a,body:not(.dark-mode) .chatOverlayActions button{color:#3a3733}
body:not(.dark-mode) .chatOverlay iframe{background:#f8f9fa}
body.dark-mode ::selection{background:rgba(207,146,101,.38);color:#fff}

body.dark-mode .fieldScene{background-color:#161514}
body.dark-mode .personaStation{color:#eff3f5}
body.dark-mode .personaLabel,body.dark-mode .personaDescription{background:#2b2927;color:#f1f4f6}
body.dark-mode .personaStation:hover,body.dark-mode .personaStation:focus-visible{background:rgba(100,124,140,.14);border-color:#95afc1;color:#f1f4f6}
@media(max-width:767px){body.dark-mode .personaStation{background:#2b2927}body.dark-mode .personaLabel,body.dark-mode .personaDescription{background:transparent}}


/* Shared technical accents; article prose keeps its reading face. */
.storyMeta,.articleQualifier,.articleMeta,.reportMeta span{font-family:var(--font-data)}
:is(a,button,input,textarea):focus-visible{outline:3px solid var(--focus,#e0a878);outline-offset:3px}

/* A still glyph scatter wakes briefly under the pointer on entry surfaces. */
.fieldIntro,.researchHero{position:relative;isolation:isolate}
.fieldIntro>.glyphField,.researchHero>.glyphField{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;user-select:none}
.fieldIntro>.glyphField{mask-image:linear-gradient(90deg,transparent 24%,#000 70%)}
.researchHero>.glyphField{mask-image:linear-gradient(90deg,transparent 35%,#000 82%)}
.fieldIntro>:not(.glyphField),.researchHero>:not(.glyphField){position:relative;z-index:1}
@media(max-width:767px){.fieldIntro>.glyphField,.researchHero>.glyphField{opacity:.5;mask-image:linear-gradient(90deg,transparent 42%,#000 95%)}}

/* The standalone chat uses the same graphite and silver surfaces as the site. */
:root{--bg:#f8f9fa;--surface:#fff;--rail:#eef1f3;--user:#e8eef2}
body:not(.dark-mode)::selection{background:#cfe0d6;color:#1f2a2a}
body:not(.dark-mode) :is(.newChat:hover,.railNav a:hover,.promptStarts button:hover){background:#e8eef2;border-color:#c5d0d6}
:root{--accent-strong:#263f51}
body:not(.dark-mode) .chatComposer{border-color:#b9c5ce;box-shadow:0 7px 24px rgba(30,43,52,.07)}
body:not(.dark-mode) .chatComposer textarea::placeholder{color:#61707a}
body:not(.dark-mode) .chatComposer button:disabled{background:#b9c5ce}
/* Site header shared by research, reports, the log and the colophon. */
.skip{position:absolute;top:-5rem;left:1rem;background:var(--surface);padding:.5rem 1rem;z-index:20}
.skip:focus{top:.6rem}
.researchNav{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}
.researchNavInner{max-width:1180px;margin:auto;padding:.75rem 1.35rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.researchBrand{font:700 1rem var(--font-body);color:var(--ink);text-decoration:none}
.researchNavLinks{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.researchNavLinks a{font:700 .84rem var(--font-body);text-decoration:none}
.researchNavLinks button{border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);padding:.35rem .7rem;cursor:pointer}
.dark-mode .researchNav{background:rgba(18,34,49,.96)}
@media(max-width:620px){.researchNavInner{align-items:flex-start}
.researchNavLinks{justify-content:flex-end;gap:.5rem}
.researchNavLinks a{font-size:.76rem}}
.researchNav{box-shadow:none}
.researchBrand{white-space:nowrap;flex:none}
.researchBrand span{font-weight:400;color:var(--muted)}
@media(max-width:620px){.researchNavInner{align-items:center}
.researchBrand span{display:none}
.researchNavLinks{flex-wrap:nowrap;gap:.55rem}
.researchNavLinks a{font-size:.75rem;white-space:nowrap}}
.researchNav{background:rgba(251,250,246,.96)}
.dark-mode .researchNav{background:rgba(17,26,22,.95)}
body.dark-mode .researchNavLinks button{background:#1b2d22;color:#f1f5ed}
body.dark-mode .researchNav{background:rgba(17,21,18,.96)}
@media (max-width: 620px){.researchNavLinks a,.researchNavLinks button{min-height: 44px; display: inline-flex; align-items: center;}}
.researchNavLinks .researchFind{min-height: 44px; padding: .35rem .55rem; border: 0; border-radius: 7px; background: transparent; color: var(--accent); font: 700 .84rem var(--font-body); cursor: pointer;}
.researchNavLinks .researchFind:hover{background: #eaf2e9;}
@media(max-width:620px){.researchNavLinks{gap: .2rem;}
.researchNavLinks .researchFind{font-size: .75rem;}
.researchNavInner{padding-inline: .85rem;}}
@media(max-width:620px){.researchNavLinks a[href="index.html#reading-path"]{display:none;}
.researchNavLinks{gap:.5rem;}}
body.dark-mode .researchNav{background:rgba(22,21,20,.96)}
body.dark-mode .researchNavLinks button{background:#201f1d;color:#ece9e4;border-color:#3a3733}
/* Inner pages only: the homepage and the chat app keep their own code face. */
body:has(.researchNav) :is(code,pre,kbd,samp){font-family:var(--font-data)}
.researchNavLinks a{color:var(--accent)}
body:not(.dark-mode) .findAskLauncher:focus-visible{outline-color:#2f5d50}
@media(max-width:620px){.researchNavLinks a,.researchNavLinks .researchFind{font-size:.75rem}}
@supports (transition-timing-function:linear(0,1)){:root{--ease-spring:linear(0,0.006,0.025 2.8%,0.101 6.1%,0.539 18.9%,0.721 25.3%,0.849 31.5%,0.937 38.1%,0.968 41.8%,0.991 45.7%,1.006 50.1%,1.015 55%,1.017 63.9%,1.001)}}
/* Colour and surface (docs/superpowers/specs/2026-11-19-colour-and-surface-design.md): warm neutrals,
   surfaces one tonal step from the page. Day keeps the paper and the green. */
/* Only pages with a site header: the chat app keeps its own surfaces. */
:root:has(#navigation,.researchNav){--surface:#efece4;--surface-2:#e6e2d8;--lab-panel-solid:#efece4;--lab-panel:rgba(239,236,228,.92);--lab-bg-soft:#e6e2d8;--report-surface:#efece4;--color-surface-soft:#e6e2d8}
:root:has(#navigation,.researchNav) body.dark-mode{--surface:#201f1d;--surface-2:#2b2927}
/* Diagram nodes sit one tone above their panel, in both themes. */
body.dark-mode .reportShell :is(.flowNode,.matrixCell,.sequenceStep){background:#32302d}
body.dark-mode .chartFill{background:var(--report-blue)}
/* The Ask launcher and its dialog bar by day: warm paper, not blue-grey; visible focus. */
body:not(.dark-mode) .findAskLauncher{background:#efece4;border-color:#dcd7c9}
body:not(.dark-mode) .chatOverlayActions :focus-visible{outline-color:#2f5d50}
.researchNavLinks .researchFind,.findAskForm input{border-radius:999px}
