/*
 * A shared chart as its social card (companies/chart_cards/show,
 * tasks/growth/milestones/37): one sheet of 1200 by 630, the size social sites
 * draw a link's picture at, on the paper ground. The company in the display
 * serif with its ticker, and the wordmark at the right, on one line; the
 * chart filling what is left, its key above it; the source and the
 * publisher line under a rule. The page is photographed at that size, so it
 * uses pixels, not the reader's type scale.
 */
@layer pages {
  .card-page {
    margin: 0;
    background-color: var(--color-ground);
  }

  .chart-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 14px;
    box-sizing: border-box;
    inline-size: 1200px;
    block-size: 630px;
    padding: 28px 44px 22px;
    overflow: hidden;
    background-color: var(--color-ground);
  }

  .chart-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block-end: 10px;
    border-block-end: var(--rule-heavy);

    & .logo {
      font-size: 34px;
    }
  }

  .chart-card__name {
    min-inline-size: 0;
    margin: 0;
    overflow: hidden;
    color: var(--color-ink);
    font-family: var(--font-prose);
    font-size: 44px;
    font-weight: var(--weight-bold);
    line-height: 1.05;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .chart-card__ticker {
    color: var(--color-ink-muted);
    font-family: var(--font-ui);
    font-size: 22px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.06em;
    vertical-align: middle;
  }

  .chart-card__chart {
    --company-chart-height: 100%;

    min-block-size: 0;
  }

  .chart-card__foot {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-block-start: 10px;
    border-block-start: var(--rule-hairline);
    color: var(--color-ink-muted);
    font-size: 16px;
  }
}
