/* Light-mode polish (Oct 30 2026). Loaded after light.css on every page (light_mode.py); written light, never converted.
   Each rule fixes something the automatic flip cannot judge: tiles, banners, dividers, spacing. */
html[data-theme="light"] body{--pl-green:#0a8f5c;--pl-ink:#14171a;--pl-muted:#57625b;--pl-line:#e1e5e0;--pl-tint:#e9f4ee}

/* Icon tiles: flat tint instead of the dark-to-white gradient the flip produced */
html[data-theme="light"] body :is(.x-tile,.p5-tile,.rh-tile,.v2-tile,.x-tile-accent){background:var(--pl-tint)!important;border:1px solid #cfe5d8!important;color:var(--pl-green)!important;box-shadow:none!important}
html[data-theme="light"] body :is(.x-tile,.p5-tile,.rh-tile,.v2-tile,.x-tile-accent) svg{color:var(--pl-green)!important;stroke:currentColor}

/* Top referral banner (home): stands out */
html[data-theme="light"] body .syi-topbar{background:#0e3b2b!important;color:#e9f4ee!important}
html[data-theme="light"] body .syi-topbar span{color:#e9f4ee!important}
html[data-theme="light"] body .syi-topbar a{color:#3fae7a!important;font-weight:600}

/* "Where business data is selling": hairlines that span the full width, not dark half-rules */
html[data-theme="light"] body section.buyer-rail{border-bottom:0!important;border-top:0!important;box-shadow:none!important;padding-top:56px!important;padding-bottom:56px!important}
html[data-theme="light"] body section.buyer-rail::before,html[data-theme="light"] body section.buyer-rail::after{display:none!important}
html[data-theme="light"] body .x-rail-wrap{border:0!important}
html[data-theme="light"] body #site-root > section.buyer-rail{position:relative}
html[data-theme="light"] body #site-root > section.buyer-rail + section{border-top:1px solid var(--pl-line)!important}

/* Tool picker ("How selling your data works"): names on one line */
html[data-theme="light"] body #how-it-works button span,html[data-theme="light"] body #how-it-works label span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Deal ticker: its own row, taller, centered between sections */
html[data-theme="light"] body .dl-ticker{margin:56px auto 72px!important;min-height:64px;align-items:center;border-color:var(--pl-line)!important;background:#fff!important;box-shadow:0 1px 2px rgba(16,24,20,.04)}
html[data-theme="light"] body .dl-ticker-label{align-self:stretch;font-size:15px!important;padding:0 22px!important;background:var(--pl-tint)!important;border-right:1px solid var(--pl-line)!important}
html[data-theme="light"] body .dl-ticker-track{align-self:center}
html[data-theme="light"] body .dl-tick{font-size:15px}

/* Less dead space */
html[data-theme="light"] body section.h5-sellable{padding-bottom:clamp(56px,6vw,88px)!important}
html[data-theme="light"] body #section-6{padding-top:clamp(40px,5vw,72px)!important}
html[data-theme="light"] body #data{padding-bottom:clamp(40px,5vw,72px)!important}

/* Section dividers: hairlines, never the near-black the flip produces from faint white rules */
html[data-theme="light"] body #site-root > section.enterprise-section{border-color:var(--pl-line)!important}
html[data-theme="light"] body #valuation.assessment-section{border-bottom:1px solid var(--pl-line)!important}

/* Primary buttons are green everywhere; their label stays white */
html[data-theme="light"] body :is(.primary-button,.primary-button:hover,.primary-button:visited){color:#fff!important}

/* Data-type page diagram (orbit): white cards with a hairline, not inverted black tiles */
html[data-theme="light"] body .lp-satellite{background:#fff!important;color:var(--pl-ink)!important;border:1px solid var(--pl-line)!important;box-shadow:0 1px 3px rgba(16,24,20,.06)!important}
html[data-theme="light"] body .lp-satellite *{color:var(--pl-ink)!important}
html[data-theme="light"] body .lp-satellite svg{color:var(--pl-green)!important}

/* Events filter bar: page-colored sticky bar with a hairline, no grey band */
html[data-theme="light"] body .ev-bar{background:rgba(250,251,250,.96)!important;box-shadow:none!important;clip-path:none!important;border-bottom:1px solid var(--pl-line)!important}

/* Tool grids: names on one line */
html[data-theme="light"] body .p5-tool span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme="light"] body .p5-tools{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important}

/* Marketplace listing covers: pale tint with green line art instead of near-black panels */
html[data-theme="light"] body .mk-cover-art > rect:first-child{fill:#e9f4ee!important}
html[data-theme="light"] body .mk-cover-art [stroke]:not([stroke="none"]){stroke:#0a8f5c!important}
html[data-theme="light"] body .mk-cover-art > rect:not(:first-child),html[data-theme="light"] body .mk-cover-art circle{fill:#0a8f5c!important}

/* Landing diagrams: the dark "slate" variant becomes the light mint one */
html[data-theme="light"] body .lp-graphic.lp-slate{--accent:#2f7a55;--ink:#1d2420;--muted:#6b756f;--edge:#1d24201a;--paper:#ffffff;background:linear-gradient(140deg,#e9f1ec,#f8fbf9)!important;border-color:#d5e2d9!important}
/* Eyebrow labels in brand green, readable on light */
html[data-theme="light"] body :is(.h5-eyebrow,.h5-go){color:#0a6b47!important}

/* Task-board example: empty lanes read as drop targets, not missing content */
html[data-theme="light"] body [data-df-task-mount]:empty{display:grid;place-items:center;min-height:150px;margin-top:14px;border:1.5px dashed #cfd8d2;border-radius:10px;background:rgba(10,143,92,.03)}
html[data-theme="light"] body [data-df-task-mount]:empty::after{content:"Move the example task here";font-size:13px;color:#80868a}

/* Article CTA boxes and company logo tiles were cream panels on the dark site */
html[data-theme="light"] body .art-cta{background:#eef5f0!important;border:1px solid #d5e7dc!important;color:var(--pl-ink)!important}
html[data-theme="light"] body .art-cta :is(h2,h3,strong,b){color:var(--pl-ink)!important}
html[data-theme="light"] body .art-cta p{color:#3d4447!important}
html[data-theme="light"] body .art-cta .art-cta-kicker{color:#0a6b47!important}
html[data-theme="light"] body .art-logo{background:#fff!important;border:1px solid var(--pl-line)!important}
/* Small labels that read too faint */
html[data-theme="light"] body :is(.bv-steps small,.bv-code .n){color:#80868a!important}
html[data-theme="light"] body .ex-rank{color:#9aa59e!important}

/* Accent-green variables are used for links, kickers and labels; the deep green reads on paper (about 6:1) */
html[data-theme="light"] body,html[data-theme="light"] body *{--mint:#0a6b47!important;--green:#0a6b47!important;--g-lite:#0a6b47!important}
/* Article buttons and small leftovers */
html[data-theme="light"] body .art-btn--ghost{color:var(--pl-ink)!important;border-color:#cfd8d2!important;background:#fff!important}
html[data-theme="light"] body :is(.art-vs-x,.footnote-ref,.p5-st-when,.p5-bt-tag,.rh-id,.rh-kicker,.mr-hb-l,.dl-status--ok,.ev-tag.ev-new){color:#0a6b47!important}
html[data-theme="light"] body .ex-chips button.on{color:#fff!important}
/* Light theme: text on the few surfaces that stay dark (article primary button, numbered landing-page nodes) */
html[data-theme="light"] .art-cta a.art-btn--primary{color:#fff!important}
html[data-theme="light"] .art-cta a.art-btn--primary:hover{background:#2a3a31!important;color:#fff!important}
html[data-theme="light"] .lp-node em,html[data-theme="light"] .v2-node em{color:#fff!important}

/* Wordmark: Sora (chosen 2026-11-02), self-hosted */
@font-face{font-family:'Sora';font-style:normal;font-weight:100 800;font-display:swap;src:url(/fonts/sora.woff2) format('woff2')}
.brand-wordmark{font-family:'Sora',Geist,system-ui,sans-serif!important;font-weight:650!important;letter-spacing:-.035em!important}
/* Data discovery (portal Data manifest): labels and checks on the green fill stay white */
html[data-theme="light"] body :is(.dv-head-ic,.dv-send,.dv-add i,.dv-m-has .dv-m-ic,.mf-tool.on .mf-tick,.mf-seg button.on,.mf-pick-ic,.mf-ck-has .mf-ck-ic,.dv-ib.on,.dv-cov li.dv-ok>span){color:#fff!important}
html[data-theme="light"] body .mf-ck-act button.on{background:var(--pl-ink,#1d2420)!important;border-color:var(--pl-ink,#1d2420)!important;color:#fff!important}
html[data-theme="light"] body :is(.mf-pick,.mf-check,.dv-chat,.dv-card,.dv-box){background:#fff!important}
html[data-theme="light"] body .dv-box{box-shadow:0 2px 12px rgba(16,24,20,.07)}
html[data-theme="light"] body .dv-msgs .lc-a{background:none!important;border:0!important;box-shadow:none!important}
html[data-theme="light"] body .dv-st small.dv-warn{color:#9a6a00!important}
html[data-theme="light"] body .dv-box textarea{border:0!important;background:none!important;box-shadow:none!important;padding:0!important}
html[data-theme="light"] body .dv-add-f .dv-add-ic{background:var(--pl-tint,#e9f4ee)!important;color:var(--pl-green,#0a8f5c)!important}
html[data-theme="light"] body .mf-tool.on{background:var(--pl-tint,#e9f4ee)!important}
html[data-theme="light"] body :is(.dv-tile small.dv-warn){color:#9a6a00!important}
html[data-theme="light"] body :is(.dv-ed,.mf-search){background:#fff!important}
html[data-theme="light"] body .mf-acc nav button.on{background:var(--pl-tint,#e9f4ee)!important;border-color:var(--pl-green,#0a8f5c)!important;box-shadow:inset 3px 0 0 var(--pl-green,#0a8f5c)!important}
html[data-theme="light"] body .mf-cat svg{background:var(--pl-tint,#e9f4ee)!important;color:var(--pl-green,#0a8f5c)!important}
html[data-theme="light"] body .mf-groups button.seen .mf-gn{color:#fff!important}
html[data-theme="light"] body .mf-miss .mf-jumps button{color:#7a5300!important;background:#fff!important}
/* Discovery chat: a neutral grey bubble for the owner's messages, like ChatGPT. */
html[data-theme="light"] body .dv-msgs .lc-u{background:#f0f2f1!important;color:#15201b!important;border:0!important}
html[data-theme="light"] body .dv-av{background:#fff!important;border-color:#e3e7e5!important}
html[data-theme="light"] body .dv-micnote{color:#9a5b00!important}
/* Selected tabs, chips and step markers on the brand green keep white text. */
html[data-theme="light"] body :is(.crm-chips a.on,.crm-chips a.on i,.crm-seg a.on,.sb-tab.on,.hm-n.on,.sb-step-h>span:first-child,.sp-steps li.done .sp-dot){color:#fff!important}
html[data-theme="light"] body :is(.sb-auto){color:#fff!important}
html[data-theme="light"] body .sb-man{background:#fff6e5!important;color:#8a5a00!important;border-color:#f0d39a!important}
html[data-theme="light"] body .sb-mail{background:#fff!important;color:#1d2420!important}
html[data-theme="light"] body :is(.rc-roles button.on,.sp-steps li.done .sp-dot){color:#fff!important}
html[data-theme="light"] body .sp-steps li.on .sp-dot{background:#fff!important}
html[data-theme="light"] body .sp-next{background:#fff8ea!important;border-color:#efd49c!important}html[data-theme="light"] body .sp-next-ok{background:#eef6f1!important;border-color:#bcdccb!important}
html[data-theme="light"] body .sp-steps li.on small{color:#9a5b00!important}
html[data-theme="light"] body .mf-2nd{background:#fff8ea!important;border-color:#efd49c!important;color:#5c4210!important}
html[data-theme="light"] body :is(.mf-bs-screenshot,.mf-bs-checked){background:#e5f1ea!important;color:#1f5c3f!important}html[data-theme="light"] body .mf-bs-estimate{background:#eef0ef!important;color:#5b6660!important}
html[data-theme="light"] body :is(.mf-steps button.done span,.mf-r-tick.done,.mf-where li>span){color:#fff!important}
html[data-theme="light"] body :is(.mf-steps,.mf-page,.mf-receipt){background:#fff!important}
html[data-theme="light"] body .mf-tool{border-color:#b4bfb9!important}
html[data-theme="light"] body .mf-tool-dup{background:#f1f3f2!important;border-color:#dfe4e1!important}
html[data-theme="light"] body :is(.mf-hello,.mf-where,.mf-opt.on,.mf-opt:has(input:checked),.mf-steps button.on){background:#eef6f1!important}
html[data-theme="light"] body .mf-need{background:#fff8ea!important;border-color:#efd49c!important;color:#5c4210!important}
