/**
 * @file
 * Statistic Highlight Card — separate fields, BEM class layout in Twig.
 *
 * Figma: Access Control burden stat (29097:69658).
 * Shrink-to-content "box" — max 679px (Figma body/footnote width),
 * not full layout bleed. Column gap 24; intro→figure and body→footnote
 * gap 8; figure row gap 8; CHARCOAL #1D2D3A.
 */

.layout-container {

  .statistic-highlight-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 8px;
    row-gap: 24px;
    box-sizing: border-box;
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    overflow: visible;
    color: var(--color-charcoal);
    font-family: var(--font-agenda);
  }

  .statistic-highlight-card > * {
    margin: 0;
    max-width: 100%;
  }

  .statistic-highlight-card > .statistic-highlight-card__intro {
    flex: 0 0 100%;
    margin-bottom: -16px;
    padding-left: 4px;
    color: var(--color-charcoal);
    font-size: 22px !important;
    font-weight: 400;
    line-height: normal;
    font-feature-settings: "liga" 0;
  }

  .statistic-highlight-card > .statistic-highlight-card__intro sup,
  .statistic-highlight-card > .statistic-highlight-card__label sup,
  .statistic-highlight-card > .statistic-highlight-card__body sup {
    font-size: var(--sup-ratio);
    line-height: 0;
    position: relative;
    top: -0.5em;
    vertical-align: baseline;
  }

  .statistic-highlight-card > .statistic-highlight-card__value {
    position: relative;
    flex: 0 0 auto;
    color: var(--color-charcoal);
    font-size: 80px !important;
    font-weight: 700;
    line-height: 1;
    text-align: right;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    text-box: trim-both cap alphabetic;
    white-space: nowrap;
  }

  .statistic-highlight-card > .statistic-highlight-card__value .statistic-highlight-card__approx {
    position: absolute;
    right: calc(100% + 2px);
    top: 1;
  }

  .statistic-highlight-card > .statistic-highlight-card__label {
    flex: 1 1 0;
    min-width: 0;
    color: var(--color-charcoal);
    font-size: 28px !important;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
    font-feature-settings: "liga" 0;
  }

  .statistic-highlight-card > .statistic-highlight-card__label strong,
  .statistic-highlight-card > .statistic-highlight-card__label b {
    font-weight: 700;
  }

  .statistic-highlight-card > .statistic-highlight-card__body {
    flex: 0 0 100%;
    margin-bottom: -16px;
    color: var(--color-charcoal);
    font-size: 20px !important;
    font-weight: 400;
    line-height: normal;
  }

  .statistic-highlight-card > .statistic-highlight-card__body strong,
  .statistic-highlight-card > .statistic-highlight-card__body b {
    font-weight: 700;
  }

  .statistic-highlight-card > .statistic-highlight-card__footnote {
    flex: 0 0 100%;
  }

  @media (max-width: 900px) {

    .statistic-highlight-card > .statistic-highlight-card__value {
      font-size: 64px !important;
    }

    .statistic-highlight-card > .statistic-highlight-card__label {
      font-size: 24px !important;
    }
  }

  @media (max-width: 767px) {

    .statistic-highlight-card {
      max-width: 100%;
    }

    .statistic-highlight-card > .statistic-highlight-card__intro {
      padding-left: 0;
      font-size: 22px !important;
      text-align: left;
    }

    .statistic-highlight-card > .statistic-highlight-card__value {
      flex: 0 0 100%;
      font-size: 80px !important;
      text-align: center;
    }

    .statistic-highlight-card > .statistic-highlight-card__value .statistic-highlight-card__approx {
      position: static;
      right: auto;
    }

    .statistic-highlight-card > .statistic-highlight-card__label {
      flex: 0 0 100%;
      margin-top: -16px;
      font-size: 28px !important;
      text-align: center;
    }

    .statistic-highlight-card > .statistic-highlight-card__label br {
      display: none;
    }

    .statistic-highlight-card > .statistic-highlight-card__body {
      font-size: 20px !important;
      text-align: left;
    }
  }
}
