/* The pill switcher across the top of every page: Home · Professional | Personal | Ancestry.
   Self-contained: it sits on top of two different themes, so it sets everything it relies on. */
.cv-sites {
  --cv-pro: #0617d5; --cv-per: #c80908; --cv-anc: #159648;
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2147483000;
  display: flex; align-items: center; gap: 6px; padding: 5px;
  background: rgba(14, 15, 20, .78); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .06) inset;
  font: 500 13px/1 Poppins, "Helvetica Neue", Arial, sans-serif; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; box-sizing: border-box; max-width: calc(100vw - 20px);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s;
}
.cv-sites *, .cv-sites *::before, .cv-sites *::after { box-sizing: border-box; }
.cv-sites a { text-decoration: none !important; border: 0 !important; box-shadow: none !important; }
.cv-sites-home {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--cv-pro), #efefef, var(--cv-per), var(--cv-anc), #e9af0a, var(--cv-pro));
  color: #fff !important; font: 700 11px/1 Poppins, Arial, sans-serif; letter-spacing: .04em; position: relative;
}
.cv-sites-home::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #14151b; transition: background .25s; }
.cv-sites-home:hover::before, .cv-sites-home[aria-current="page"]::before { background: #23252e; }
.cv-sites-home span { position: relative; }
.cv-sites-pill { position: relative; display: flex; align-items: center; gap: 2px; }
.cv-sites-pill a {
  position: relative; z-index: 1; display: block; padding: 9px 15px; border-radius: 999px;
  color: rgba(255, 255, 255, .72) !important; white-space: nowrap; transition: color .25s;
}
.cv-sites-pill a:hover, .cv-sites-pill a:focus-visible { color: #fff !important; }
.cv-sites-pill a[aria-current="page"] { color: #fff !important; }
.cv-sites a:focus-visible { outline: 2px solid #e9af0a; outline-offset: 2px; }
.cv-sites-thumb {
  position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 0; border-radius: 999px; opacity: 0;
  background: var(--cv-thumb, var(--cv-pro)); box-shadow: 0 4px 14px -4px var(--cv-thumb, var(--cv-pro));
  transition: transform .42s cubic-bezier(.3, 1.3, .4, 1), width .42s cubic-bezier(.3, 1.3, .4, 1), background-color .3s, opacity .2s;
}
.cv-sites.is-ready .cv-sites-thumb { opacity: 1; }
.cv-sites[data-current="home"] .cv-sites-thumb, .cv-sites[data-current="notfound"] .cv-sites-thumb { opacity: 0; }
.cv-sites.is-going .cv-sites-thumb { opacity: 1; }
/* hidden while scrolling down a long page, back when scrolling up */
.cv-sites.is-tucked { transform: translate(-50%, -70px); }
@media (max-width: 480px) {
  .cv-sites { top: 10px; gap: 3px; padding: 4px; font-size: 12px; }
  .cv-sites-home { width: 28px; height: 28px; }
  .cv-sites-pill a { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .cv-sites, .cv-sites-thumb { transition: none; } }
@media print { .cv-sites { display: none; } }

/* Room for the bar in each theme. Career: the top of its left column and the journal header. */
body.has-cv-sites .top_panel { padding-top: 6px; }
body.has-cv-sites.body_style_wide .content_wrap_outer, body.has-cv-sites .page_wrap > .content_wrap_outer { scroll-margin-top: 70px; }
