/* Styles for story.hbs — "درباره صراف".

   The panel frame, its heading, the body text and the inner card frame are the
   parent's, in `about.css`: `permissions.hbs` renders all four as well. What is
   here is what only this section has. */

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

/* Replaces the legacy's leading `<br>`, which put one blank line between the
   question and the answer on top of the 8px every paragraph already has. */
.about-text--lead {
  margin-top: 28px;
}

.about-facts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 100%;
}

.about-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px;
}

/* The accent down the leading edge. Present from the start on small screens,
   where there is no pointer to reveal it with; on large ones it grows out of
   nothing on hover, which is the legacy's `width: 0` to `4px` transition. */
.about-fact::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 4px;
  height: 75%;
  transform: translateY(-50%);
  border-radius: 5px 0 0 5px;
  background-color: var(--identity);
  transition: width 0.1s ease;
}

.about-fact-term {
  color: var(--gray-600);
  font-size: 16px;
  font-weight: 400;
}

.about-fact-value {
  color: var(--gray-900);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .about-fact::after {
    transition: none;
  }
}

@media (min-width: 1000px) {
  .about-story-grid {
    grid-template-columns: 3fr 2fr;
    gap: 80px;
    margin-bottom: 40px;
  }

  .about-text--lead {
    margin-top: 34px;
  }

  .about-fact {
    gap: 16px;
    padding: 16px 24px;
  }

  .about-fact::after {
    width: 0;
  }

  .about-fact:hover::after {
    width: 4px;
  }
}
