/* Stacked fractions in task text ({3/4}, {1 1/2}; StackedFraction, user decision 04.10.2026).
   Same look as the kladde and the fraction answer field: tæller over a rounded bar over nævner.
   Smaller digits and a tight line height keep a line with a fraction only a little taller,
   so prompts, answer buttons and explanations keep their layout on a 390 px phone. */
.frac { display: inline-block; white-space: nowrap; vertical-align: middle; margin: 0 .08em; }
.frac-visual { display: inline-flex; align-items: center; gap: .14em; }
.frac-whole { line-height: 1; }
.frac-stack { display: inline-flex; flex-direction: column; align-items: stretch; font-size: .88em; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.frac-num, .frac-den { display: block; padding: 0 .12em; }
.frac-bar { display: block; height: max(2px, .09em); margin: .08em 0; border-radius: 2px; background: currentColor; }
/* An answer that is one fraction is shown large (choice-text-short); its digits stay readable. */
.choice-text-short .frac-stack { font-size: .66em; }
