/* Homepage-specific filename avoids cached Orderly /theme.css from before migration. */
/* The dark header and original white/orange logo stay consistent in both modes. */
.site-header{background:#0b0812f5;border-bottom-color:#ffffff1f;color:#f6f3fa}
.nav-actions{display:flex;align-items:center;gap:12px}
.theme-toggle{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:10px;border:1px solid #ffffff30;border-radius:8px;background:#ffffff08;color:#f6f3fa;transition:background-color .2s,border-color .2s,transform .15s}
.theme-toggle:hover{background:#ffffff18;border-color:#f15a25}
.theme-toggle:active{transform:scale(.94)}
.theme-toggle[hidden]{display:none}
/* Subtle switch: the sun and moon sit on top of each other; switching turns one out and the other in */
.theme-toggle svg{position:absolute;inset:0;margin:auto;width:22px;height:22px;transition:opacity .25s ease,transform .5s cubic-bezier(.2,.8,.2,1)}
.theme-moon{opacity:0;transform:rotate(90deg) scale(.5)}
html[data-theme=light] .theme-moon{opacity:1;transform:none}
html[data-theme=light] .theme-sun{opacity:0;transform:rotate(-90deg) scale(.5)}
@media(hover:hover){html:not([data-theme=light]) .theme-toggle:hover .theme-sun{transform:rotate(45deg)}html[data-theme=light] .theme-toggle:hover .theme-moon{transform:rotate(-15deg)}}
html[data-theme=light]{color-scheme:light;--bg:#f4f5f7;--text:#211a29;--muted:#62586e;--line:#35284420;--orange-light:#c74313}
html[data-theme=light] .hero-haze{background:linear-gradient(180deg,#f4f5f710 0%,#f4f5f720 40%,#f4f5f799 78%,var(--bg) 100%)}
html[data-theme=light] .hero-art{background:radial-gradient(ellipse at 50% 28%,#decde53d,transparent 66%)}
html[data-theme=light] .hero-art::before{filter:brightness(.55) drop-shadow(0 0 40px #f15a2570)}
html[data-theme=light] .hero-description,html[data-theme=light] .hero-powered{color:#62586e}
html[data-theme=light] .hero-powered a{color:#302339}
html[data-theme=light] .button-secondary{border-color:#3e2b5740;background:#ffffffb3;color:#302339}
html[data-theme=light] .button-secondary:hover{background:#ece5f3}
html[data-theme=light] .market-board{border-color:#3d285c30;background:linear-gradient(120deg,#fffffff5,#f9f7fcfa);box-shadow:0 20px 80px #2b19330c}
html[data-theme=light] .board-top>p,html[data-theme=light] .market-summary,html[data-theme=light] .board-source,html[data-theme=light] .market-tabs button,html[data-theme=light] .market-name span,html[data-theme=light] .market-value span,html[data-theme=light] .market-volume span,html[data-theme=light] .market-extra>span,html[data-theme=light] .market-rank,html[data-theme=light] .board-footer{color:#665b73}
html[data-theme=light] .market-tabs button[aria-selected=true]{color:#bd3e11}
html[data-theme=light] .market-item:hover{background:#f15a250b}
html[data-theme=light] .market-value .positive{color:#087953}
html[data-theme=light] .market-value .negative{color:#c52d4b}
html[data-theme=light] .market-volume strong{color:var(--text)}
html[data-theme=light] .board-footer a,html[data-theme=light] .footer-bottom a{color:#4d355f}
html[data-theme=light] .risk-notice,html[data-theme=light] .footer-bottom,html[data-theme=light] .background-motion-toggle{color:#665b73}
html[data-theme=light] .background-motion-toggle:hover{color:#302339}
html[data-theme=light] .token-fallback{background:#ede6f4;color:#4d355f}
@media(max-width:760px){.nav{gap:18px}.nav-actions{gap:10px}.theme-toggle{width:42px;height:42px}}
@media(max-width:440px){.nav-actions{margin-left:auto}.nav-cta{margin-left:0}.nav{gap:10px}}
@media(max-width:380px){.brand img{width:125px}.nav-cta{padding-inline:12px}.nav-actions{gap:8px}.theme-toggle{width:40px;height:40px}}
@media(max-width:350px){.brand img{width:110px}}

/* Slow "dawn / dusk" theme change, started by homepage-theme-v2.js with a view transition.
   Light mode rolls in from the right (east) to the left (west), dark mode from the left (west) to the right (east),
   behind a soft edge half the screen wide. Change 1.6s to make it slower or faster. */
::view-transition-old(root),::view-transition-new(root){mix-blend-mode:normal}
::view-transition-old(root){animation:none}
::view-transition-new(root){animation:theme-sweep 1.6s cubic-bezier(.45,0,.25,1) both;-webkit-mask-image:linear-gradient(to right,transparent 40%,#000 60%);mask-image:linear-gradient(to right,transparent 40%,#000 60%);-webkit-mask-size:250% 100%;mask-size:250% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
@keyframes theme-sweep{from{-webkit-mask-position:0% 0;mask-position:0% 0}to{-webkit-mask-position:100% 0;mask-position:100% 0}}
html[data-theme-sweep=to-dark]::view-transition-new(root){animation-name:theme-sweep-west-east;-webkit-mask-image:linear-gradient(to left,transparent 40%,#000 60%);mask-image:linear-gradient(to left,transparent 40%,#000 60%)}
@keyframes theme-sweep-west-east{from{-webkit-mask-position:100% 0;mask-position:100% 0}to{-webkit-mask-position:0% 0;mask-position:0% 0}}
@media(prefers-reduced-motion:reduce){::view-transition-new(root){animation:none}}
