/* Tuition: the opening, the buy now / buy later line, three columns, the pull and the hand-off. */

/* Headings on this page never break inside a word. */
main h1, main h2, main h3 { overflow-wrap: normal; word-break: normal; hyphens: manual; }

.cost-open { padding-top: calc(var(--measure-edge) + 1.5rem); align-items: center; }
.cost-words .spike { display: block; width: min(14rem, 70%); height: 0.9rem; margin-bottom: 1.4rem; }
.cost-open h1 { font-size: clamp(1.75rem, 1rem + 3.3vw, 4rem); margin-bottom: 0.6em; }
.cost-aside {
  display: block; margin-top: 1.1em;
  font: 600 var(--step-h3)/1.25 var(--face-text);
}
.cost-answer { font-size: calc(var(--step-body) * 1.12); max-width: 36rem; }
.cost-reach { max-width: 36rem; margin-bottom: 0; }
.cost-reach a { font-weight: 600; }
.cost-bench { align-self: center; }

/* The set piece: one strip of tape the width of the heading; the two lists run the width of the grid */
.day-head { display: grid; width: fit-content; max-width: 100%; }
.day-line h2 { margin-bottom: 0.3em; }
.day-strip { padding-block: 0.5rem; margin-bottom: 1.6rem; }
.day-strip .spike { display: block; height: 1rem; }
.day-split {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: var(--measure-gap);
}
.day-split h3 { margin-bottom: 0.7em; }
.day-split ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.6rem var(--measure-gap);
  font-size: calc(var(--step-body) * 1.12); line-height: 1.35;
}

/* Three columns of unequal width: what to ask, what can wait.
   Each column is a container, so its heading is sized from the column's own width
   and the longest word always sits whole on one line. */
.cost-col { container-type: inline-size; }
.cost-col .spike { display: block; margin-bottom: 1rem; }
.cost-col h2 { font-size: clamp(1.125rem, 10.5cqi, var(--step-h3)); margin-bottom: 0.7em; }
.cost-ask { margin-bottom: 0.8em; }
.cost-ask strong { font-weight: 600; }

/* The pull and the trial note */
.quote-row { align-items: start; }
.quote-row .pull { max-width: 22ch; }
.trial-note h2 { font-size: var(--step-h3); }
.trial-note p:last-child { margin-bottom: 0; }

/* The hand-off */
.handoff-row { align-items: start; }
.handoff-row .taped { gap: 1.2rem; }
.way-link {
  font: 800 var(--step-h3)/1.15 var(--face-display);
  text-decoration: none; display: inline-block; min-height: 2.75rem;
}
.way-link:hover { text-decoration: underline; text-decoration-thickness: 0.12em; text-underline-offset: 0.2em; }
.ask-end { container-type: inline-size; }
.ask-end p { max-width: 30rem; font-size: calc(var(--step-body) * 1.1); }
/* The address is set in the text face and sized from its column, so it stays on one line:
   the mark above it when the column is narrow, beside it when there is room. */
.ask-end .ask-link {
  flex-direction: column; align-items: flex-start; gap: 0.5em;
  font: 600 clamp(0.9rem, 6.6cqi, var(--step-h3))/1.15 var(--face-text);
  white-space: nowrap; overflow-wrap: normal;
}
.ask-end .ask-link .spike { flex: none; }
@container (min-width: 30rem) {
  .ask-end .ask-link {
    flex-direction: row; align-items: center; gap: 0.7em;
    font-size: clamp(1.125rem, 4.6cqi, var(--step-h3));
  }
}

@container (min-width: 48rem) {
  .cost-open { padding-bottom: var(--measure-band); }
  .cost-col { padding-right: 0.5rem; }
  .cost-col-second { padding-top: 1.5rem; }
  .cost-col-third { padding-top: 3rem; }
  .day-split ul { grid-template-columns: 1fr 1fr; }
}

/* Between the phone and a full desk width the narrow third column has no room for its heading:
   the three run the width of the grid, one under the other. */
@container (min-width: 48rem) and (max-width: 71.99rem) {
  .cost-col { grid-column: 1 / -1; padding-right: 0; }
  .cost-col-second, .cost-col-third { padding-top: 0; }
}

@media (max-width: 40rem) {
  .day-split ul { font-size: 1rem; }
  .day-split h3 { font-size: 1.05rem; }
  .quote-row .pull { max-width: none; }
}
