/* ForecastsPro landing: the /math page's own styles (owner, 6 November 2026, the design notes).
 *
 * Loaded after site.css and seats.css on /math only (site.css keeps its size budget). Tokens
 * only, no inline styles (the CSP). The cards, formulas and table themselves are site.css's.
 */

/* Each card opens with its plain sentence, above the formula; the note under it adds the detail. */
.math-lead { margin-top: 14px; color: var(--text-default); font-size: var(--lp-card-text); line-height: 1.6; }

/* Recent highs and lows, the last indicator: its definitions one per line, every number kept. */
.math-defs { display: grid; gap: 8px; list-style: none; color: var(--text-muted); font-size: var(--lp-card-text); line-height: 1.6; }
.math-defs b { color: var(--text-primary); font-weight: 600; }
/* Two columns of cards: it fills the whole row (no empty half beside it), the formulas on the
   left and the definitions on the right; its heading and plain sentence span both. */
@media (min-width: 961px) {
  .math-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: var(--lp-gap); align-items: start; }
  .math-card-wide > .math-head,
  .math-card-wide > .math-lead { grid-column: 1 / -1; }
  .math-card-wide > .eq { margin-bottom: 0; }
  .math-card-wide > .math-defs { margin-top: 16px; }
}

/* No number in a formula under 12 px (Small polish 3): a script is drawn at about 0.71 of its
   base, 9.6-10.8 px on phones before; the setting chips are 12 px in site.css. */
.eq :is(msub, msup, msubsup, munder, munderover) > :not(:first-child, mtext),
.eq mfrac mfrac > * { font-size: max(.75rem, 0.71em); }
.eq mtext { font-size: max(.75rem, 0.86em); }

/* The note under the table reads at about 68 characters a line (Small polish 1). */
.profiles-foot { max-width: 31em; }

/* The next chapter's questions open the FAQ page: each row ends with the chapter's arrow, not
   the FAQ's "+" (review, 8 November 2026: here they had neither). The same two rules as
   home.css (a test holds them equal). */
.q-row .go-arrow { position: absolute; top: 50%; right: 12px; width: 28px; height: 28px; margin-top: -14px; color: var(--accent-text); }
.chapter-teaser:hover .q-row .go-arrow,
.chapter-teaser:focus-visible .q-row .go-arrow { background: var(--accent-soft); color: var(--accent-text); transform: none; }
