@use '../../_global/styles/mixins' as *;
@use '../../_global/styles/vars' as *;

.reading-time {
  display: block;
  font-size: 0;
  font-weight: 700;
  font-family: "Korb", sans-serif;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.3s ease;
  z-index: 2;
  width: 100%;

  span {
    padding-left: 4px;
    font-size: var(--font-size-xs);
    line-height: 1.4;
    display: inline-block;
  }

  .value {
    background-color: var(--color-button-primary-background);
    color: var(--color-button-primary-text);
    padding: 0 6px;
    transition: background-color 0.3s ease;
  }
}

a:hover .reading-time {
  color: var(--color-decoration);
}

.teaser .reading-time:last-child {
  position: absolute;
  bottom: 0;
  right: 0;
}
