/*
 * The Dividends card (companies/keystats/_dividends): the figures over its
 * chart, and the chart's key. The chart itself is the year bars
 * (components/year-bars.css).
 */
@layer components {
  /* Four figures in two columns, six with `overview_record`'s buybacks and
     share count. */
  .dividend-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm) var(--space-md);
    margin: 0;
    padding-block: var(--space-sm);
    border-block-end: var(--rule-hairline);

    & dd {
      margin: 0;
      font-weight: var(--weight-semibold);
    }
  }

  .dividend-stats__cell {
    display: grid;
    gap: var(--space-3xs);
  }

  .dividend-key {
    display: inline-block;
    inline-size: 0.75rem;
    block-size: 0.75rem;
    vertical-align: middle;
  }

  .dividend-key--paid {
    background-color: var(--color-series-1);
  }

  .dividend-key--forecast {
    border: var(--rule-width) dashed var(--color-rule-control);
    background-color: var(--color-forecast);
  }
}
