/* Elite Page example Pages: light/dark theme. Loaded after the Page's own styles. */
.theme-toggle{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.85);color:var(--plum);cursor:pointer;flex:0 0 auto;-webkit-tap-highlight-color:transparent;transition:border-color .2s ease,transform .12s ease}.theme-toggle svg{width:22px;height:22px;grid-area:1/1;transition:opacity .25s ease,transform .35s ease}
.theme-toggle .i-sun{opacity:0;transform:rotate(-60deg) scale(.6)}
[data-theme=dark] .theme-toggle .i-sun{opacity:1;transform:none}
[data-theme=dark] .theme-toggle .i-moon{opacity:0;transform:rotate(60deg) scale(.6)}
.ex-bar .logo-dark{display:none}
[data-theme=dark] .ex-bar .logo-light{display:none}
[data-theme=dark] .ex-bar .logo-dark{display:block}
@media (prefers-reduced-motion:reduce){.theme-toggle svg{transition:none}}
@media (max-width:480px){.ex-bar nav{gap:8px}.ex-bar .btn{padding:8px 12px;font-size:14px}}

[data-theme=dark]{color-scheme:dark;--plum:#E6CDEE;--plum-2:#F1E2F5;--ink:#F4ECF6;--gray:#BDB0C4;--lilac:#3C2945;--line:#3A2B42;--card:#211726;--field:#1A1220;--cream:#140D18;--amber-text:#F2B565}
[data-theme=dark] body.example{background:radial-gradient(1200px 600px at 50% -10%,#2E1A35 0%,rgba(46,26,53,0) 60%),var(--cream)}
[data-theme=dark] .ex-bar{background:rgba(20,13,24,.92)}
[data-theme=dark] .ex-badge,[data-theme=dark] .theme-toggle{background:#211726}
[data-theme=dark] .theme-toggle{color:#F6C27A}
[data-theme=dark] .ex-bar .btn-ghost{border-color:#5A4363}
[data-theme=dark] .ex-bar .btn-primary,[data-theme=dark] .ep-seg button[aria-pressed="true"],[data-theme=dark] .ep-node.terminal,[data-theme=dark] .ep-box.on{background:#7E3F8A;border-color:#7E3F8A;color:#fff}
[data-theme=dark] .ep-section{box-shadow:0 10px 30px rgba(0,0,0,.35)}
[data-theme=dark] .ep-callout,[data-theme=dark] .ep-toc,[data-theme=dark] .ep-card,[data-theme=dark] .ep-cal,[data-theme=dark] .ep-node,[data-theme=dark] .ep-seg button,[data-theme=dark] .ep-box{background:#1A1220}
[data-theme=dark] .ep-callout.info,[data-theme=dark] .ep-metric{background:#2A1C10;border-color:#5A3F1E}
[data-theme=dark] .ep-callout-lead,[data-theme=dark] .ep-row-lead,[data-theme=dark] .ep-edge span{color:#F2B565}
[data-theme=dark] .ep-bar-fill{background:#B98AC4}
[data-theme=dark] .ep-chip.success{background:#173A22;color:#9BE3AE}
[data-theme=dark] .ep-chip.warning{background:#3A2614;color:#F6C27A}

/* Colors set inline by the interactive Page parts (React style attributes) */
[data-theme=dark] [style^="color: rgb(42, 26, 46)"],[data-theme=dark] [style*="; color: rgb(42, 26, 46)"]{color:var(--ink)!important}
[data-theme=dark] [style^="color: rgb(74, 37, 80)"],[data-theme=dark] [style*="; color: rgb(74, 37, 80)"]{color:var(--plum)!important}
[data-theme=dark] [style^="color: rgb(107, 100, 112)"],[data-theme=dark] [style*="; color: rgb(107, 100, 112)"]{color:var(--gray)!important}
[data-theme=dark] [style^="color: rgb(138, 132, 144)"],[data-theme=dark] [style*="; color: rgb(138, 132, 144)"]{color:#9F93A6!important}
[data-theme=dark] [style^="color: rgb(122, 61, 106)"],[data-theme=dark] [style*="; color: rgb(122, 61, 106)"]{color:#E3A6CF!important}
[data-theme=dark] [style*="background: rgb(246, 236, 248)"],[data-theme=dark] [style*="background-color: rgb(246, 236, 248)"]{background:#2C1E33!important}
[data-theme=dark] [style*="background: rgb(255, 252, 248)"],[data-theme=dark] [style*="background-color: rgb(255, 252, 248)"],[data-theme=dark] [style*="background: rgb(255, 255, 255)"],[data-theme=dark] [style*="background-color: rgb(255, 255, 255)"]{background:#1A1220!important}
[data-theme=dark] [style*="border-color: rgb(233, 225, 236)"],[data-theme=dark] [style*="solid rgb(233, 225, 236)"]{border-color:var(--line)!important}
[data-theme=dark] [style*="background: rgb(74, 37, 80)"],[data-theme=dark] [style*="background-color: rgb(74, 37, 80)"]{background:#7E3F8A!important}
[data-theme=dark] [style*="solid rgb(255, 252, 248)"]{border-color:#211726!important}

/* Charts (SVG) */
[data-theme=dark] svg [fill="#4A2550"]{fill:#C9A2D3}
[data-theme=dark] svg [stroke="#4A2550"]{stroke:#C9A2D3}
[data-theme=dark] svg [fill="#2A1A2E"],[data-theme=dark] svg text[fill="#2A1A2E"]{fill:var(--ink)}
[data-theme=dark] svg [fill="#6B6470"]{fill:var(--gray)}
[data-theme=dark] svg [fill="#8A8490"]{fill:#9F93A6}
[data-theme=dark] svg [stroke="#E9E1EC"]{stroke:var(--line)}
[data-theme=dark] svg [fill="#E9E1EC"],[data-theme=dark] svg [fill="#F6ECF8"]{fill:#3A2B42}
[data-theme=dark] svg [fill="#FFFCF8"],[data-theme=dark] svg [fill="#fff"],[data-theme=dark] svg [fill="#ffffff"]{fill:#211726}
/* Tier pills keep their light colors and dark text in both modes */
[data-theme=dark] [style*="background: rgb(231, 211, 236)"][style*="color: rgb(74, 37, 80)"],[data-theme=dark] [style*="background: rgb(246, 215, 160)"][style*="color: rgb(74, 37, 80)"]{color:#4A2550!important}
[data-theme=dark] [style*="background: rgb(227, 154, 63)"][style*="color: rgb(42, 26, 46)"]{color:#2A1A2E!important}
[data-theme=dark] [style*="background: rgb(122, 61, 106)"]{box-shadow:inset 0 0 0 1px #A0698F}

/* Interactive tool controls */
[data-theme=dark] .ep-tool-event,
[data-theme=dark] .ep-tool-link,
[data-theme=dark] .ep-tool-icon-btn,
[data-theme=dark] .ep-tool input,
[data-theme=dark] .ep-tool select{background:#1A1220}
[data-theme=dark] .ep-tool-link.primary{background:#7E3F8A;border-color:#7E3F8A;color:#fff}
[data-theme=dark] .ep-tool-result{background:#2A1C10;border-color:#5A3F1E}
[data-theme=dark] .ep-tool-event .when{color:#F2B565}

[data-theme=dark] .ep-tool-suggest,[data-theme=dark] .ep-name-chip{background:#1A1220}
[data-theme=dark] .ep-tool-suggest.on,[data-theme=dark] .ep-name-chip{background:#3C2945;border-color:#E6CDEE}
[data-theme=dark] .ep-name-chip button{color:#E6CDEE}

/* EP-11: "Start one like this" */
.ex-bar .ex-start-short{display:none}
@media (max-width:480px){.ex-bar .ex-start-long{display:none}.ex-bar .ex-start-short{display:inline}}
.ex-cta{max-width:760px;margin:28px auto 8px;padding:26px 22px;text-align:center;background:var(--card,#fff);border:1px solid var(--line,#E9E1EC);border-top:5px solid var(--amber,#E39A3F);border-radius:20px;box-shadow:0 12px 34px rgba(42,26,46,.07);font-family:Nunito,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
.ex-cta .ex-cta-k{margin:0 0 6px;color:var(--amber-text,var(--amber,#A85F12));font-weight:800;letter-spacing:.1em;text-transform:uppercase;font-size:13px}
.ex-cta h2{margin:0 0 8px;color:var(--plum,#4A2550);font-size:clamp(22px,5.4vw,28px);line-height:1.2;font-weight:900}
.ex-cta p{margin:0 0 16px;color:var(--gray,#6B6470);font-size:16px}
.ex-cta .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;max-width:340px;min-height:56px;padding:14px 26px;border-radius:999px;background:var(--plum,#4A2550);color:#fff;font-weight:800;font-size:17px;text-decoration:none}
@media (max-width:800px){.ex-cta{margin:24px 16px 8px}}
[data-theme=dark] .ex-cta{background:var(--card);border-color:var(--line);box-shadow:0 10px 30px rgba(0,0,0,.35)}
[data-theme=dark] .ex-cta .btn{background:#7E3F8A}
[data-theme=dark] .ex-cta .ex-cta-k{color:var(--amber-text,#F2B565)}

html{color-scheme:light;-webkit-tap-highlight-color:transparent}
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.18s}
@media (hover:hover){

.theme-toggle:hover{border-color:var(--plum)}
}
.theme-toggle,.ex-bar .btn,.ex-cta .btn{-webkit-tap-highlight-color:transparent}
.theme-toggle:active,.ex-bar .btn:active,.ex-cta .btn:active{transform:scale(.98);transition-duration:.1s}
@media (prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  ::view-transition-old(root),::view-transition-new(root){animation:none!important}
  .theme-toggle,.ex-bar .btn,.ex-cta .btn{transition:none}
  .theme-toggle:active,.ex-bar .btn:active,.ex-cta .btn:active{transform:none}
}

/* Space for the save-to-home-screen bar, reserved before first paint by theme.js. */
html.ep-save-pending{padding-top:calc(60px + env(safe-area-inset-top))}

[data-theme=dark] .ep-upsell{border-top-color:#F2B565}
[data-theme=dark] .ep-upsell-k{color:#F2B565}
[data-theme=dark] .ep-upsell-cta{background:#7E3F8A}
