/*
 * Adaptive number-card typography for Unit 4, Lesson 1, Grammar 1.6 only.
 *
 * The card itself is the sizing reference. This avoids the former tablet
 * jump where the Hanzi changed from 24px to 36px at the same moment that the
 * grid made each card narrower.
 */

.grammar-number-cards-responsive .grammar-number-card {
    container-type: inline-size;
}

.grammar-number-cards-responsive .grammar-number-word {
    min-width: 0;
    gap: clamp(0.375rem, 2cqi, 0.5rem) !important;
}

.grammar-number-cards-responsive .grammar-number-char {
    flex: 0 0 auto;
    width: clamp(1.5rem, 16cqi, 3rem) !important;
}

.grammar-number-cards-responsive .grammar-number-pinyin {
    font-size: clamp(0.625rem, 4.5cqi, 0.875rem) !important;
}

.grammar-number-cards-responsive .grammar-number-hanzi {
    font-size: clamp(1.5rem, 12cqi, 2.25rem) !important;
}
