/* Dark mode, shared by every page. The page-specific dark colours are generated into each page by tools/dark-theme.py.
   <html data-theme="dark"> is set before the page draws (see the small script in each page's <head>) and by My account > Appearance. */
@media screen{
html[data-theme="dark"]{color-scheme:dark;--ink:#e6ebf0;--muted:#9ba7b4;--bg:#0e1216;--card:#161b21;--line:#29323c;--accent-d:#1f91cd}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] [style*="background:#fff"]{background:var(--card)!important}
html[data-theme="dark"] [style*="background:#f2f6f9"]{background:var(--bg)!important}
html[data-theme="dark"] [style*="color:#0072a8"]{color:#5cc2f0!important}
html[data-theme="dark"] [style*="color:#a2321a"]{color:#ec9987!important}
/* panels that are dark in both modes get an outline so they stand off the dark page */
html[data-theme="dark"] .est,html[data-theme="dark"] .cta-band{border:1px solid var(--line)}
html[data-theme="dark"] footer{border-top:1px solid #1d242c}
}
/* My account icon in the top menu */
.acct-btn{display:inline-flex;align-items:center;gap:3px}
.acct-ico{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.acct-caret{font-size:.7rem}
/* "How it works" video pop-up */
#hiw{position:fixed;inset:0;z-index:1000;background:rgba(5,8,11,.78);display:flex;align-items:center;justify-content:center;padding:20px}
.hiw-box{width:min(960px,100%);background:#161b21;border:1px solid #2a323b;border-radius:20px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.6);color:#fff}
.hiw-top{display:flex;justify-content:space-between;align-items:center;padding:14px 18px}
.hiw-top strong{display:block;font-size:1.05rem}.hiw-top span{font-size:.85rem;color:#9ba7b4}
.hiw-x{background:none;border:0;color:#cfd6de;font-size:1.2rem;cursor:pointer;width:38px;height:38px;border-radius:10px}
.hiw-x:hover{background:#232a32}
#hiw video{display:block;width:100%;aspect-ratio:16/9;background:#0b0d10}
.hiw-vid{position:relative}
.hiw-snd{position:absolute;left:16px;top:16px;display:inline-flex;align-items:center;gap:10px;padding:14px 24px;border-radius:999px;border:2px solid rgba(255,255,255,.85);background:rgba(0,114,168,.92);color:#fff;font:700 1.05rem/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.45);animation:hiwPulse 2s ease-in-out infinite}
.hiw-snd:hover{background:#005a85}
.hiw-snd span{font-size:1.25rem}
@keyframes hiwPulse{0%,100%{box-shadow:0 10px 30px rgba(0,0,0,.45),0 0 0 0 rgba(0,174,239,.55)}50%{box-shadow:0 10px 30px rgba(0,0,0,.45),0 0 0 12px rgba(0,174,239,0)}}
@media(prefers-reduced-motion:reduce){.hiw-snd{animation:none}}
@media(max-width:560px){.hiw-snd{left:10px;top:10px;padding:8px 14px;font-size:.88rem}}
.hiw-foot{display:flex;gap:10px;justify-content:flex-end;padding:14px 18px;flex-wrap:wrap}
.hiw-foot .btn.line{color:#cfd6de;border-color:#3a434d;background:transparent}
