/*
/assets/css/author-meta.css
Single post author meta.
Above-the-fold
*/

/*
* Post header layout (moves the author block on top of H1)
*/

.single-sportsbook .entry-content:not(:first-child) {
  margin-top: 0;
}

.entry-header {
  display: flex;
  flex-flow: column;
}

.entry-header .rank-math-breadcrumb {
  order: 0;
}

.entry-header .entry-meta {
  order: 1;
}

.entry-header .entry-title {
  order: 2;
}

/*
* Layout
*/

div .entry-meta {
  align-items: start;
  display: flex;
  flex-flow: row wrap;
  gap: 1rem;
  margin: 10px 0;
}

.entry-meta .author,
.entry-meta .editor {
  overflow: hidden;
  position: relative;
}

/*
* Short version
*/

.entry-meta .short {
  align-items: center;
  column-gap: 1rem;
  cursor: pointer;
  display: grid;
  font-size: 14px;
}

.entry-meta .short:after {
  align-self: start;
  background: #cccccc;
  content: '';
  grid-column: 3/4;
  grid-row: 1/4;
  height: 40px;
  width: 1px;
}

/* Avatar */
.entry-meta .short img {
  grid-column: 1/2;
  grid-row: 1/3;
  height: 40px;
  width: 40px;
  border-radius: 50%;
}

/* Title */
.entry-meta .short span {
  grid-column: 2/3;
  grid-row: 1/2;
}

.entry-meta .short span:first-of-type {
  font-size: 12px;
}

/* Name */
.entry-meta .short .name {
  font-weight: 700;
  grid-row: 2/3;
  position: relative;
}

.entry-meta .short .name .name-text {
  font-size: 14px;
}

/* Fact checked */
.entry-meta .fact-checked {
  align-items: center;
  border: 2px solid var(--accent);
  border-radius: 1rem;
  color: var(--accent);
  display: flex;
  flex-flow: row nowra;
  font-size: 12px;
  font-weight: 700;
  grid-column: 2/3;
  grid-row: 3/4;
  margin-top: 0.25rem;
  padding: 0.1rem 0.4rem;
}

.entry-meta .fact-checked .dashicons {
  background-color: var(--accent);
  border-radius: 50%;
  color: #ffffff;
  font-size: 12px;
  height: 12px;
  margin-right: 0.25rem;
  width: 12px;
}

/* Date */
.entry-meta .date {
  font-size: 14px;
}

/*
* Long (tooltip) version
*/

.entry-meta .long {
  left: -55px;
  max-width: 100vw;
  opacity: 0;
  position: absolute;
  top: 100%;
  transition: opacity 0.3s ease-in-out;
  width: 320px;
  z-index: 2;
}

.entry-meta .long-inner {
  background: #ffffff;
  box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-flow: column;
  font-size: 14px;
  font-weight: 400;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 10px;
}

/* Title */
.entry-meta .short .long .long-title {
  font-size: 14px;
  font-weight: 700;
}

/* Socials */
.entry-meta .long-socials {
  display: flex;
  flex-flow: row nowrap;
  gap: 0.5rem;
}

.entry-meta .short .long-socials .dashicons {
  font-size: 16px;
}

/* PRofile link */
.entry-meta a {
  font-weight: 700;
}

/* Close */
.entry-meta .close {
  display: none;
}

@media only screen and (min-width: 1025px) {
  /* Shows the long version on hover */
  .entry-meta .author:hover,
  .entry-meta .editor:hover {
    overflow: visible;
  }

  .entry-meta .author:has(.name:hover) .long,
  .entry-meta .editor:has(.name:hover) .long {
    opacity: 1;
  }
}

@media only screen and (max-width: 1024px) {
  .entry-meta {
    position: relative;
  }
  
  .entry-meta .short .name {
    position: static;
  }
  
  .entry-meta .author,
  .entry-meta .editor {
    position: static;
  }
  
  .entry-meta .author .long,
  .entry-meta .editor .long {
    left: 0;
    width: calc(100vw - 70px);
  }
  
  .entry-meta .author .long.show,
  .entry-meta .editor .long.show {
    opacity: 1;
    z-index: 9999;
  }

  /* Close */
  .entry-meta .close {
    cursor: pointer;
    display: block;
    font-size: 1rem !important;
    padding: 0.5rem 1rem;
    position: absolute;
    right: 0rem;
    top: 1rem;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .entry-meta .author .long,
  .entry-meta .editor .long {
    width: calc(100vw - 180px);
  }
}

@media only screen and (max-width: 622px) {
  div .entry-meta {
    gap: 10px 2rem;
  }
  
 .entry-meta .date {
   flex: 1 0 100%;
  }
  
  .entry-meta .date br {
    display: none;
  }
  
  .author .short::after,
  .editor .short::after {
    display: none;
  }
}

@media only screen and (max-width: 440px) {
  div .entry-meta {
    gap: 10px 2rem;
  }
  
  .entry-meta .short {
    align-items: start;
    display: flex;
    flex-flow: column;
  }
  
 .entry-meta .short img {
   display: none;
  }
}