/*-- -------------------------- -->
<---            Stats           -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #stats-bar {
    width: 100%;
    padding: clamp(0.75rem, 2vw, 1rem) 1rem;
    background-color: #223a4d;
  }
  #stats-bar .cs-stat-group {
    width: 100%;
    max-width: 60rem;
    margin: auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.5rem;
  }
  /* justify-content: flex-start (not center) -- the labels wrap to a
     different number of lines per stat, so centering each item's content
     independently threw the numbers out of line with each other. Top-
     aligning keeps every number on the same baseline regardless of how
     tall its label ends up. */
  #stats-bar .cs-stat {
    width: 100%;
    flex: 1;
    text-align: center;
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    position: relative;
  }
  #stats-bar .cs-stat:not(:first-child):before {
    content: "";
    width: 1px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.35);
    position: absolute;
    top: 0;
    left: 0;
  }
  #stats-bar .cs-stat-number {
    /* 28px - 56px: shrinks further on mobile so 3 fit in a row. */
    font-family: 'Self Modern', serif;
    font-size: clamp(1.75rem, 7vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1em;
    color: var(--secondary);
  }
  #stats-bar .cs-stat-label {
    /* 12px - 15px */
    font-size: clamp(0.75rem, 2.4vw, 0.9375rem);
    font-weight: 500;
    line-height: 1.3em;
    max-width: 14ch;
    color: #fff;
  }
}

/* Tablet - 768px: more breathing room now there's space for it */
@media only screen and (min-width: 48rem) {
  #stats-bar .cs-stat-group {
    gap: 1rem;
  }
  #stats-bar .cs-stat {
    padding: 0 1.5rem;
  }
  #stats-bar .cs-stat-label {
    max-width: 18ch;
  }
}
