/* ================================================
   Public type scale — one scale, every selectable theme
   ================================================

   GENERATED FILE. Do not hand-edit: run
       python3 tools/build_public_typography.py
   after changing the scale table. A test fails when this file drifts.

   Derived from mrrholidays.my, measured live at 1280px and 390px:
       h1 / hero     48px / 1.2      phone 30px
       h2 section    32px / 1.2      phone 26px
       h3 card       18px / 1.35
       body          14px / 1.65
   Headings and cards share one size across themes; the themes keep their own
   font family, colour, radius, borders and shadows.

   Selectors are wrapped in :where() so they add no specificity: they beat the
   theme's own rule by source order only, and still lose to .prose headings, to
   page-level @push('styles') and to inline styles.
   ================================================ */

/* ---------- desktop ---------- */
body:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) { font-size: 14px; line-height: 1.65; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) h1 { font-size: 48px; line-height: 1.2; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) h2 { font-size: 32px; line-height: 1.2; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) h3 { font-size: 18px; line-height: 1.35; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) h4 { font-size: 18px; line-height: 1.35; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) h5 { font-size: 16px; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) h6 { font-size: 14px; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .hero h1 { font-size: 48px; line-height: 1.2; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .hero-description { font-size: 18px; line-height: 1.2; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .section-title { font-size: 32px; line-height: 1.2; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .section-description { font-size: 16px; line-height: 1.65; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .page-hero-content p { font-size: 16px; line-height: 1.65; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .car-card-title { font-size: 18px; line-height: 1.35; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .activity-card-title { font-size: 18px; line-height: 1.35; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .stat-value { font-size: 34px; line-height: 1.2; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .price-amount { font-size: 24px; line-height: 1.2; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .cta-section p { font-size: 16px; line-height: 1.65; }
:where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .prose { font-size: 16px; line-height: 1.7; }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) h1 { font-size: 40px; line-height: 1.2; }
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) h2 { font-size: 30px; line-height: 1.2; }
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .hero h1 { font-size: 38px; line-height: 1.2; }
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .hero-description { font-size: 18px; line-height: 1.2; }
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .section-title { font-size: 30px; line-height: 1.2; }
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .stat-value { font-size: 28px; line-height: 1.2; }
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .price-amount { font-size: 24px; line-height: 1.2; }
}

/* ---------- phone ---------- */
@media (max-width: 768px) {
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) h1 { font-size: 30px; line-height: 1.2; }
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) h2 { font-size: 26px; line-height: 1.2; }
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .hero h1 { font-size: 30px; line-height: 1.2; }
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .hero-description { font-size: 16px; line-height: 1.2; }
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .section-title { font-size: 26px; line-height: 1.2; }
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .section-description { font-size: 16px; line-height: 1.65; }
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .page-hero-content p { font-size: 16px; line-height: 1.65; }
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .stat-value { font-size: 26px; line-height: 1.2; }
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .price-amount { font-size: 22px; line-height: 1.2; }
    :where(.theme-modern, .theme-classic, .theme-nordic, .theme-tropical, .theme-luxe, .theme-aurora, .theme-natural, .theme-verdant) .cta-section p { font-size: 16px; line-height: 1.65; }
}

/* ---------- Mobile form fields ----------
   A control that does not inherit font-family renders at the browser default
   (13.33px in Chrome/Safari). On iOS Safari focusing a field under 16px forces
   the viewport to zoom, and the user then has to pinch back out. 16px is the
   threshold; !important only beats themes that set a smaller .form-control. */
@media (max-width: 768px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
    select,
    textarea {
        font-size: 16px !important;
    }
}
