/* Site switcher. COPIED to every site next to switch.js; the reference is in
   login.adamveenendaal.com/wwwroot/. The two-class
   selectors keep each site's own button and link styles out. */
.sitesw { display: inline-flex; align-items: center; align-self: center; flex: 0 0 auto; margin-left: auto; line-height: 1; }
.sitesw.sitesw-corner { position: fixed; top: 4px; right: 4px; z-index: 2147483000; margin: 0; }

.sitesw .sitesw-btn {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 4px; cursor: pointer; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.sitesw .sitesw-btn:hover, .sitesw .sitesw-btn[aria-expanded="true"] { background: rgba(127, 127, 127, 0.28); }
.sitesw .sitesw-btn:focus-visible { outline: 2px solid #4da3ff; outline-offset: 1px; }
.sitesw.sitesw-corner .sitesw-btn { background: rgba(20, 26, 34, 0.82); color: #fff; }

.sitesw-menu {
  position: fixed; z-index: 2147483001; box-sizing: border-box; min-width: 150px; overflow-y: auto;
  padding: 2px 0; background: #151a21; color: #e8eaed; border: 1px solid #3a4452; border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); text-align: left;
  font: 14px/1.25 system-ui, "Segoe UI", Roboto, sans-serif; letter-spacing: normal; text-transform: none;
}
.sitesw-menu[hidden] { display: none; }
.sitesw-menu .sitesw-item {
  all: unset; box-sizing: border-box; display: block; width: 100%; padding: 4px 14px 4px 11px;
  border-left: 3px solid transparent; white-space: nowrap; cursor: pointer; color: #e8eaed;
}
.sitesw-menu .sitesw-item:hover, .sitesw-menu .sitesw-item:focus-visible { background: #26303d; color: #fff; }
.sitesw-menu .sitesw-item.sitesw-cur { border-left-color: #4da3ff; font-weight: 700; background: #1d2734; }
.sitesw-menu .sitesw-item.sitesw-act { color: #7cbcff; }
.sitesw-menu .sitesw-item:disabled { opacity: 0.6; cursor: default; }
.sitesw-menu .sitesw-sep { height: 1px; margin: 2px 0; background: #333c48; }
.sitesw-menu .sitesw-err { padding: 4px 14px; color: #ff8a8a; white-space: nowrap; }
@media (pointer: coarse) {
  .sitesw-menu .sitesw-item { padding-top: 7px; padding-bottom: 7px; }
}
