/*
 * Sitewide type scale — normalised to the homepage system (frontend.min.css):
 * root 16px, body 17px, hero H1 2.5rem, section H2 2rem.
 *
 * Each ported view carries its own <style> with different heading/body sizes
 * (27–76px H1, 18–54px H2, 12.6–20px body). These rules sit on top of them
 * inside <main> only, so the shared header and footer are untouched.
 * !important plus an ID-level prefix (html:not(#evt-type)) is required because the
 * view styles and Bootstrap utilities (fs-*, .h4) also use !important with class selectors.
 */

/* ── Page title (H1) ─────────────────────────────────────────────── */
html:not(#evt-type) main h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
}

/* ── Section headings (H2) ───────────────────────────────────────── */
html:not(#evt-type) main h2 {
    font-size: 2rem !important;
    line-height: 1.25 !important;
}

/* ── Sub-section headings (H3/H4) in the page flow ───────────────── */
html:not(#evt-type) main h3 {
    font-size: 1.375rem !important;
    line-height: 1.3 !important;
}
html:not(#evt-type) main h4 {
    font-size: 1.1875rem !important;
    line-height: 1.35 !important;
}

/* ── Card, sidebar, accordion, form and table titles ─────────────── */
html:not(#evt-type) main :is(.card, [class*="-card"], [class*="card-"], [class*="widget"], aside, [class*="sidebar"], .accordion, .modal, form, table) :is(h2, h3, h4) {
    font-size: 1.125rem !important;
    line-height: 1.35 !important;
}
html:not(#evt-type) main :is(.card, [class*="-card"], [class*="card-"], [class*="widget"], aside, [class*="sidebar"]) h5 {
    font-size: 1rem !important;
}

/* A section heading that only sits inside a card-named wrapper stays a section heading. */
html:not(#evt-type) main :is(.section-title, [class*="section-title"], [class*="section-head"], [class*="-heading"]) h2,
html:not(#evt-type) main h2:is(.section-title, [class*="section-title"]) {
    font-size: 2rem !important;
    line-height: 1.25 !important;
}

/* ── Long-form content (blog posts, policies, guides, rich text) ─── */
html:not(#evt-type) main :is(.article-body, .static-content-card, .guide-article, .native-richtext, .entry-content, .post-content, .td-overview-content, [class*="-description"]:not(p)) h2 {
    font-size: 1.625rem !important;
    line-height: 1.3 !important;
}
html:not(#evt-type) main :is(.article-body, .static-content-card, .guide-article, .native-richtext, .entry-content, .post-content, .td-overview-content, [class*="-description"]:not(p)) h3 {
    font-size: 1.375rem !important;
    line-height: 1.35 !important;
}
html:not(#evt-type) main :is(.article-body, .static-content-card, .guide-article, .native-richtext, .entry-content, .post-content, .td-overview-content, [class*="-description"]:not(p)) h4 {
    font-size: 1.1875rem !important;
}

/* ── Body text ───────────────────────────────────────────────────── */
/* Paragraphs and list items in the page flow use the homepage body size.
   Text inside cards, badges, stats, tables, forms and navigation keeps its
   designed (often smaller, meta) size. */
html:not(#evt-type) main :is(p, li):not(.small, small, [class*="small"], [class*="badge"], [class*="meta"], [class*="caption"], [class*="label"]):not(:is(.card, [class*="card"], [class*="widget"], aside, [class*="sidebar"], table, form, nav, footer, .modal, [class*="badge"], [class*="stat"], [class*="pill"], [class*="chip"], [class*="price"], .breadcrumb, .pagination, .dropdown-menu, .list-unstyled, [class*="meta"]) *) {
    font-size: 1.0625rem !important;
    line-height: 1.7 !important;
}
/* Long-form content inside a card-styled wrapper is still body copy. */
html:not(#evt-type) main :is(.article-body, .static-content-card, .guide-article, .native-richtext, .entry-content, .post-content, .td-overview-content, [class*="-description"]:not(p)) :is(p, li):not(.small, small, [class*="small"]) {
    font-size: 1.0625rem !important;
    line-height: 1.75 !important;
}

/* ── Hero lead / intro paragraph ─────────────────────────────────── */
html:not(#evt-type) main :is([class*="hero"]) p:not(.small, small, [class*="small"], [class*="badge"], [class*="meta"], [class*="eyebrow"], [class*="kicker"], [class*="credit"]),
html:not(#evt-type) main p.lead {
    font-size: 1.125rem !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
}

/* ── Responsive steps (same breakpoints as frontend.min.css) ─────── */
@media (max-width: 991.98px) {
    html:not(#evt-type) main h1 { font-size: 2rem !important; }
}
@media (max-width: 767.98px) {
    html:not(#evt-type) main h1 { font-size: 1.5rem !important; }
    html:not(#evt-type) main h2,
    html:not(#evt-type) main :is(.section-title, [class*="section-title"], [class*="section-head"], [class*="-heading"]) h2,
    html:not(#evt-type) main h2:is(.section-title, [class*="section-title"]) { font-size: 1.625rem !important; }
    html:not(#evt-type) main h3 { font-size: 1.25rem !important; }
    html:not(#evt-type) main :is(.article-body, .static-content-card, .guide-article, .native-richtext, .entry-content, .post-content, .td-overview-content, [class*="-description"]:not(p)) h2 { font-size: 1.375rem !important; }
    html:not(#evt-type) main :is(.article-body, .static-content-card, .guide-article, .native-richtext, .entry-content, .post-content, .td-overview-content, [class*="-description"]:not(p)) h3 { font-size: 1.1875rem !important; }
    html:not(#evt-type) main :is(.card, [class*="-card"], [class*="card-"], [class*="widget"], aside, [class*="sidebar"], .accordion, .modal, form, table) :is(h2, h3, h4) { font-size: 1.0625rem !important; }
    html:not(#evt-type) main :is([class*="hero"]) p:not(.small, small, [class*="small"], [class*="badge"], [class*="meta"], [class*="eyebrow"], [class*="kicker"], [class*="credit"]),
    html:not(#evt-type) main p.lead { font-size: 1rem !important; }
}

/* ── Card & component text ───────────────────────────────────────
 * Several views build cards from <div>/<span> with their own classes, so the
 * tag rules above do not reach them (e.g. attraction cards at 11.5–13px).
 * Three tiers matching homepage cards: description 16px, secondary line 15px,
 * meta/label minimum 13px.
 */
/* Card titles */
html:not(#evt-type) main :is(.att-card-name) {
    font-size: 1.125rem !important;
    line-height: 1.35 !important;
}
/* Prose inside cards and panels → 16px (homepage card description) */
html:not(#evt-type) main :is(.att-card-desc, .style-choice-desc, .bk-info-note, .bk-card-sub, .why-check, .why-photo-note),
html:not(#evt-type) main :is(.side-step, .booking-card__head, .help-card) p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
}
/* Secondary lines: routes, fees, places, trust points → 15px */
html:not(#evt-type) main :is(.tl-card-route, .plan-route, .cost-product-route, .att-card-city, .att-card-fee, .hl-stat-item, .tl-trust-label),
html:not(#evt-type) main :is(.att-card-city, .att-card-fee, .bk-trust-item, .bk-header-meta, .bk-sidebar-meta, .hero-trust, .custom-trust, .cost-proof-item) :is(span, strong),
html:not(#evt-type) main .why-license dd {
    font-size: 0.9375rem !important;
    line-height: 1.55 !important;
}
/* Helper text and small secondary items → 14px */
html:not(#evt-type) main :is(.field-help, .privacy-note, .city-card-country, .att-card-foot .btn, .filter-title),
html:not(#evt-type) main .privacy-note a {
    font-size: 0.875rem !important;
}
/* Meta, chips, kickers, step labels → minimum 13px (homepage meta size) */
html:not(#evt-type) main :is(.att-card-cat, .star-cnt, .tl-cat-chip, .tl-card-duration, .tl-trust-sub, .bk-price-note, .bk-guest-sub, .bk-step-label, .booking-kicker, .why-section-label, .why-kicker, .eyebrow, .duration-days),
html:not(#evt-type) main :is(.filter-btn .text-muted, .tl-card-meta span, .progress-step small, .summary-trust span, .summary-total small, .why-fact small, .destination-pill span, .style-meta span, .plan-stat span) {
    font-size: 0.8125rem !important;
}
/* The view clamps card descriptions to 2 lines but also stretches them with flex:1,
   which exposes a cut third line at the larger size. Keep exactly two lines. */
html:not(#evt-type) main .att-card-desc {
    flex: 0 0 auto !important;
    max-height: calc(1.6em * 2) !important;
    margin-bottom: auto !important;
}
