/* the home page's phone menu, the signed-in Overview link, avatar and account menu.
   Loaded by index.html and es/index.html after their own styles. It uses the page's own tokens (--fg, --muted, --glass-border,
   --line, --cyan) and copies the pill bar's own background, border and blur. Nothing else on the page changes. */

[hidden].nav-acct,[hidden].nav-menu,.nav-sheet[hidden],.acct-menu[hidden],#nav-overview[hidden],#sheet-overview[hidden]{display:none!important}

/* avatar button in the bar (signed in) */
.nav-acct{width:36px;height:36px;border-radius:50%;display:inline-grid;place-items:center;flex:none;margin-left:2px;
  background:#1b3843;color:var(--fg);font:600 13px/1 var(--sans);border:1px solid var(--glass-border);cursor:pointer;transition:background .2s,border-color .2s}
.nav-acct:hover,.nav-acct[aria-expanded="true"]{background:#24505e;border-color:rgba(0,212,232,.35)}
.nav-acct:active{transform:scale(.96)}

/* Menu button, phones only */
.nav-menu{display:none;width:44px;height:44px;border-radius:50%;place-items:center;flex:none;margin-left:2px;
  background:rgba(255,255,255,.06);color:var(--fg);border:1px solid var(--glass-border);cursor:pointer;transition:background .2s,border-color .2s}
.nav-menu svg{width:20px;height:20px}
.nav-menu:hover,.nav-menu[aria-expanded="true"]{background:rgba(255,255,255,.12);border-color:rgba(0,212,232,.35)}
.nav-menu:active{transform:scale(.95)}

/* the sheet and the account menu: dark glass, same background, border, blur and glow as the bar. Siblings of the nav, as on the app pages */
.nav-sheet,.acct-menu{position:fixed;z-index:60;padding:8px;border-radius:20px;
  background:rgba(13,33,41,.72);backdrop-filter:blur(20px) saturate(140%);-webkit-backdrop-filter:blur(20px) saturate(140%);
  border:1px solid var(--glass-border);box-shadow:0 10px 36px rgba(0,0,0,.5),0 0 0 1px rgba(0,212,232,.08)}
.nav-sheet{top:82px;left:12px;right:12px}
.nav-sheet a,.acct-menu a{display:flex;align-items:center;min-height:44px;padding:0 14px;border-radius:12px;font-size:15px;font-weight:500;color:var(--fg);transition:background .2s}
.nav-sheet a{min-height:48px;font-size:16px}
.nav-sheet a:hover,.acct-menu a:hover,.nav-sheet a:focus-visible,.acct-menu a:focus-visible{background:rgba(255,255,255,.09)}
.nav-sheet a:active,.acct-menu a:active{background:rgba(0,212,232,.16)}
.nav-sheet hr{border:0;border-top:1px solid var(--line);margin:6px 8px}
.acct-menu{top:72px;right:12px;min-width:240px;border-radius:16px}
.acct-menu .am-head{padding:10px 14px 12px;border-bottom:1px solid var(--line);margin-bottom:6px}
.acct-menu .am-head i{display:block;font-style:normal;font-size:12px;color:var(--muted)}
.acct-menu .am-head b{display:block;font-size:14px;font-weight:600;color:var(--fg);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}

/* Overview in the bar is a spare on narrow desktops: it is in the account menu too */
@media (max-width:900px){#nav-overview{display:none}}

@media (max-width:760px){
  /* under 760 the links fold into the Menu sheet; the bar keeps the logo, the account actions and the Menu button */
  .nav{left:12px;right:12px;transform:none;width:auto;max-width:none;justify-content:flex-start}
  .nav .lnk{display:none}
  .nav #nav-login:not([hidden]){display:inline-flex;align-items:center;min-height:44px;margin-left:auto;padding:0 12px;color:var(--fg)}
  .nav #nav-login[hidden]+#nav-cta{margin-left:auto}
  .nav .btn-dark{min-height:44px;padding:0 16px}
  .brand{min-height:44px}
  .nav-menu{display:inline-grid}
  .nav-acct{width:44px;height:44px}
  .acct-menu{top:82px}
}
/* the wordmark steps aside on the narrowest phones so the bar still fits at 360 */
@media (max-width:380px){
  .brand{font-size:0;gap:0;padding-right:8px}
}
