/* The look of the page on millionshort.com (site mode, lib/site.js): that site's blue, its
   lettering and its logo, in light, dark and "auto". Tokens only: the layout is ms.css's,
   apart from the one thing only a site has: the search counter and account links (lib/account.js).
   The site's server puts class="site" on <html> and may set --site-logo / --site-logo-dark. */
:root.site{
  --surface:#f5f9fd; --surface-2:#eaf2fb; --line:#dfe8f2; --line-strong:#c6d3e2;
  --text:#1f2937; --text-2:#4b5563; --text-3:#6b7280;
  --accent:#0161d2; --accent-ink:#ffffff; --accent-soft:#e5eef8; --link:#0161d2;
  --boost:#0161d2; --boost-soft:#e5eef8;
  --brand:#30a9ff;
  --font:"Open Sans",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --logo:var(--site-logo,none);
}
:root.site[data-theme="dark"]{
  --surface:#171c22; --surface-2:#1f262e; --line:#27303a; --line-strong:#374352;
  --text:#e8eaed; --text-2:#b0b8c1; --text-3:#87909a;
  --accent:#30a9ff; --accent-ink:#04121d; --accent-soft:#12293a; --link:#8ab4f8;
  --boost:#30a9ff; --boost-soft:#12293a;
  --logo:var(--site-logo-dark,var(--site-logo,none));
}
@media (prefers-color-scheme:dark){
  :root.site:not([data-theme="light"]){
    --surface:#171c22; --surface-2:#1f262e; --line:#27303a; --line-strong:#374352;
    --text:#e8eaed; --text-2:#b0b8c1; --text-3:#87909a;
    --accent:#30a9ff; --accent-ink:#04121d; --accent-soft:#12293a; --link:#8ab4f8;
    --boost:#30a9ff; --boost-soft:#12293a;
    --logo:var(--site-logo-dark,var(--site-logo,none));
  }
}

/* the logo in place of the lettered wordmark; the words stay for screen readers and for a
   browser that cannot load the picture (alt text of a background has no other home) */
.site .wordmark.has-logo{display:inline-block;flex:none;background:var(--logo) no-repeat left center/contain;
  aspect-ratio:494/92;height:26px;font-size:0;line-height:0;color:transparent;overflow:hidden}
.site .wordmark.has-logo b{color:transparent}
.site .hero .wordmark.has-logo{height:58px;max-width:86vw;background-position:center;font-size:0}
.site .cr-top .wordmark.has-logo{height:26px}

/* the allowance line in the footer */
.site #foot-left{font-weight:600;color:var(--text-2)}
.site .hero-tabs button[aria-pressed="true"]{color:var(--accent)}

/* ---------- the search counter and the account links (lib/account.js) ---------- */
:root.site{--meter:var(--accent);--meter-warn:#f5a524;--meter-warn-ink:#8a5300;--coin:#f8b830;--coin-edge:#a86c00}
:root.site[data-theme="dark"]{--meter-warn:#f5b041;--meter-warn-ink:#f5b041;--coin:#f8b830;--coin-edge:#7a4f00}
@media (prefers-color-scheme:dark){:root.site:not([data-theme="light"]){--meter-warn:#f5b041;--meter-warn-ink:#f5b041;--coin:#f8b830;--coin-edge:#7a4f00}}
.site .acct{position:relative;display:flex;align-items:center;gap:var(--s2);margin-right:var(--s1)}
.site .acct-coin{width:18px;height:18px;flex:none}
.site .acct-coin .c1{fill:var(--coin);stroke:var(--coin-edge);stroke-width:1.4}
.site .acct-coin .c2{fill:none;stroke:var(--coin-edge);stroke-width:1.2;opacity:.75}
.site .acct-coin .c3{fill:none;stroke:var(--coin-edge);stroke-width:1.6;stroke-linecap:round}
.site .acct-pill{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px 0 8px;border:1px solid var(--line-strong);border-radius:var(--r-pill);background:var(--bg);color:var(--text);font-size:var(--fs-s);white-space:nowrap;cursor:pointer}
.site .acct-pill:hover,.site .acct-pill[aria-expanded="true"]{background:var(--surface);border-color:var(--accent)}
.site .acct-pill:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.site .acct-pill b{font-weight:600}
.site .acct-pill .acct-short{display:none}
.site .acct-pill.warn{border-color:var(--meter-warn)}
.site .acct-mark{display:inline-flex}
/* a paid plan: no counter. A person button, on a phone only (a wide screen has the words) */
.site .acct-pill.plain{display:none;width:34px;padding:0;justify-content:center;border-color:transparent;color:var(--text-2)}
.site .acct-person{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.site .acct-more.first{margin-top:0;padding-top:0;border-top:0}
.site .acct-links{display:flex;align-items:center;gap:var(--s2)}
.site .acct-link{display:inline-flex;align-items:center;height:34px;padding:0 8px;border-radius:var(--r-pill);color:var(--text-2);font-size:var(--fs-s);font-weight:500;text-decoration:none;white-space:nowrap}
.site .acct-link:hover{color:var(--text);background:var(--surface-2)}
.site .acct-up{text-decoration:none;height:32px}
.site .acct-pop{position:absolute;z-index:30;top:calc(100% + 8px);right:0;width:320px;max-width:calc(100vw - 16px);padding:var(--s4);background:var(--bg);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:var(--shadow);color:var(--text);text-align:left;font-size:var(--fs-m);line-height:1.5}
.site .acct-pop[hidden]{display:none}
.site .acct-msg{margin:0 0 var(--s3);color:var(--text-2)}
.site .acct-row{display:flex;align-items:center;justify-content:space-between;gap:var(--s2);font-size:var(--fs-s)}
.site .acct-lab{display:inline-flex;align-items:center;gap:6px;color:var(--text)}
.site .acct-bar{height:12px;margin:6px 0 0;border-radius:var(--r-pill);background:var(--surface-2);overflow:hidden}
.site .acct-bar i{display:block;height:100%;border-radius:var(--r-pill);background:var(--meter);transition:width .25s ease}
.site .acct-bar.warn i{background:var(--meter-warn)}
.site .acct-btns{display:flex;gap:var(--s2);margin-top:var(--s4)}
.site .acct-btns .btn{flex:1;justify-content:center;height:42px;font-size:var(--fs-m);font-weight:600;text-decoration:none}
.site .acct-more{display:flex;flex-wrap:wrap;gap:var(--s4);margin-top:var(--s3);padding-top:var(--s3);border-top:1px solid var(--line);font-size:var(--fs-s)}
.site .acct-more a{color:var(--link);text-decoration:none;padding:4px 0}
.site .acct-more a:hover{text-decoration:underline}
@media (prefers-reduced-motion:reduce){.site .acct-bar i{transition:none}}
/* a phone: the words go (the card has the same links), the pill is shorter in the results header,
   and the card sits at the bottom of the screen, clear of the search box */
@media (max-width:640px){
  .site .acct-links{display:none}
  .site .acct-pill.plain{display:inline-flex}
  .site .top .acct-pill.plain{padding:0}
  .site .top .acct-pill{padding:0 10px 0 6px}
  .site .top .acct-pill .acct-full{display:none}
  .site .top .acct-pill .acct-short{display:inline}
  .site .acct-pop{position:fixed;top:auto;left:8px;right:8px;bottom:8px;width:auto;max-width:none;box-shadow:0 -2px 24px rgba(0,0,0,.18),var(--shadow)}
}
/* a narrow phone: the logo, the pill and the three tools still share one line */
@media (max-width:400px){
  .site .top .acct{margin-right:0}
  .site .top .acct-pill{gap:4px;padding:0 8px 0 5px;height:32px}
  .site .top .acct-coin{width:16px;height:16px}
  .site .top .tools{gap:0}
  .site .top .tools .iconbtn{width:32px}
}
