/* Audience · "Present and future leaders, united by an interest in India": who is in the room, as three shares
   (40 / 30 / 30) with their lines and "1000+ came last year". Short by design. Numbers set in type, never a made-up
   chart; A2's widths are the shares themselves. Shares .q, .q-grid and .q__title with questions.css.
   Nothing overlaps type. No motifs. */

.au__head {
  align-items: end;
}

.au__head .q__title {
  grid-column: 2 / 7;
  font-size: var(--type-title);
  line-height: var(--text-h1--line-height);
}

.au__head .q__title > span {
  display: block;
  white-space: normal;
}

/* The room's size, the band's biggest number, set beside the title rather than buried in the caption. */
.au__total {
  grid-column: 7 / 8;
  display: grid;
  justify-items: end;
  text-align: right;
}

.au__total b {
  font-family: var(--font-display);
  font-size: var(--type-title);
  line-height: 0.9;
}

.au__total span {
  font-size: var(--text-small);
  line-height: var(--text-small--line-height);
  color: var(--quiet);
}

.au2 .au__total span {
  color: var(--palette-rose-tint);
}

.au-pct {
  display: block;
  font-family: var(--font-display);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.au-who {
  display: block;
  font-size: var(--type-body);
  line-height: var(--text-body--line-height);
  color: var(--quiet);
  text-wrap: pretty;
}

/* The group's name carries the line; the rest of it is quiet. */
.au-who b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--type-lead);
  line-height: var(--text-h3--line-height);
  color: var(--ink);
}

.au__cap {
  margin-top: var(--sp-stack-lg);
  font-size: var(--text-small);
  line-height: var(--text-small--line-height);
  color: var(--quiet);
}

.au__cap span {
  grid-column: 2 / 8;
}

/* ================= A1 · three figures, paper ================= */
.au1__figs {
  row-gap: var(--sp-stack-lg);
  margin-top: calc(var(--sp-section) * 0.6);
  align-items: start;
}

.au1__figs .au-group:nth-child(1) { grid-column: 2 / 4; }
.au1__figs .au-group:nth-child(2) { grid-column: 4 / 6; }
.au1__figs .au-group:nth-child(3) { grid-column: 6 / 8; }

.au1__figs .au-pct {
  margin-bottom: var(--sp-stack-md);
  font-size: var(--type-figure);
}

.au1__figs .au-who {
  max-width: 30ch;
}

/* ================= A2 · the room as widths, crimson ================= */
.au2__field {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr;
  gap: var(--sp-stack-md);
  margin-top: calc(var(--sp-section) * 0.6);
  padding-inline: var(--lay-gutter);
}

/* Each block is a palette tile on the crimson band: paper, dusty rose, rose tint, all with crimson type. */
.au-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-stack-lg);
  min-height: calc(var(--sp-section) * 2.4);
  padding: var(--tile-pad);
  color: var(--primary);
  --ink: var(--primary);
  --quiet: var(--primary);
}

.au-block:nth-child(1) { background: var(--background); }
.au-block:nth-child(2) { background: var(--palette-dusty-rose); }
.au-block:nth-child(3) { background: var(--palette-rose-tint); }

.au-block .au-pct {
  font-size: var(--type-figure);
}

.au-block .au-who {
  max-width: 30ch;
}

.au2 .au__cap {
  color: var(--palette-rose-tint);
}

/* ================= A3 · cascade + card, lapis ================= */
.au3__stage {
  display: grid;
  grid-template-columns: calc(var(--sp-section) * 3.6) minmax(0, 1fr);
  gap: var(--sp-stack-lg);
  width: min(100% - var(--lay-gutter) * 2, var(--lay-wide));
  margin-inline: auto;
  align-items: center;
}

.au3__card {
  display: grid;
  gap: var(--sp-stack-lg);
  padding: var(--sp-inset-lg);
  background: var(--background);
  color: var(--palette-lapis-blue);
  --ink: var(--palette-lapis-blue);
  --quiet: var(--palette-lapis-blue);
}

.au3__card ol {
  display: grid;
  gap: var(--sp-stack-md);
}

/* A row: the share on the left, the group on its baseline beside it. */
.au-row {
  display: grid;
  grid-template-columns: calc(var(--type-title) * 2.1) minmax(0, 1fr);
  align-items: baseline;
  column-gap: var(--sp-inset-md);
}

.au-row .au-pct {
  font-size: var(--type-title);
}

.au3__cap {
  display: flex;
  align-items: baseline;
  gap: var(--sp-inset-sm);
  font-size: var(--text-small);
  line-height: var(--text-small--line-height);
}

.au3__cap b {
  font-family: var(--font-display);
  font-size: var(--type-heading);
  line-height: 1;
}

.au3__words {
  container-type: inline-size;
}

.au3__words h2 {
  font-size: 9cqi;
  line-height: 0.98;
}

.au3__words h2 > span {
  display: block;
  width: fit-content;
  white-space: nowrap;
}

.au3__words h2 > span:nth-child(1) { margin-inline-start: 4%; }
.au3__words h2 > span:nth-child(2) { margin-inline-start: 14%; }
.au3__words h2 > span:nth-child(3) { margin-inline-start: 0%; }
.au3__words h2 > span:nth-child(4) { margin-inline-start: 10%; }

/* ================= A4 · the sentence, Jodhpuri ================= */
.au4__head {
  row-gap: var(--sp-stack-md);
}

.au4__kicker {
  grid-column: 2 / 6;
  font-family: var(--font-display);
  font-size: var(--type-heading);
  line-height: var(--text-h2--line-height);
  text-wrap: balance;
}

/* One sentence holds the room; the three shares step up inside it so they still read as figures. */
.au4__sentence {
  margin-top: calc(var(--sp-section) * 0.5);
  font-family: var(--font-display);
  font-size: var(--type-title);
  line-height: var(--text-h1--line-height);
  text-wrap: pretty;
}

.au4__sentence span {
  grid-column: 2 / 8;
}

/* The shares step up inside the sentence without opening the lines around them. */
.au4__sentence b {
  font-size: calc(var(--type-title) * 1.22);
  line-height: 0.5;
}

/* ================= Narrow ================= */
@media (max-width: 899px) {
  .au1__figs .au-group:nth-child(n) {
    grid-column: 2 / 8;
  }

  .au2__field {
    grid-template-columns: 1fr;
  }

  /* Stacked, the blocks keep their shares as heights. */
  .au-block:nth-child(1) { min-height: calc(var(--sp-section) * 2); }
  .au-block:nth-child(n + 2) { min-height: calc(var(--sp-section) * 1.5); }

  .au3__stage {
    grid-template-columns: 1fr;
  }

  .au3__card {
    order: 2;
    max-width: var(--ms-sm);
  }

  .au4__kicker,
  .au__head .q__title {
    grid-column: 2 / 8;
  }

  .au__total {
    grid-column: 2 / 8;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 599px) {
  .au3__words h2 {
    font-size: 11cqi;
  }

  .au3__words h2 > span:nth-child(n) {
    margin-inline-start: 0;
    white-space: normal;
  }

  .au4__sentence {
    font-size: var(--type-heading);
  }

  .au4__sentence b {
    font-size: var(--type-title);
  }
}
