/* Mobilní typografie obsahových kapitol podle stránky Generace. Stejná
   vrstva má přednost před místními styly i v dříve publikovaných nabídkách. */
@layer cezar-chapter-headings {
  @media (max-width: 1100px) {
    :root {
      --cezar-mobile-chapter-heading: clamp(2.125rem, 10.25vw, 2.625rem);
      --cezar-mobile-chapter-label: 0.8125rem;
    }

    main :is(section, article.article-content, .cezar-release-group) h2:not(:where(
      :is(
        aside, form, dialog, [role="dialog"], nav, noscript, template,
        article:not(.article-content), section#top, section.hero,
        section[class$="-hero"], section[class*="-hero "],
        #obj, #objednavka, #poptavka, .inquiry-section, .order-section, .mm-order-section,
        .ap-form-card, .access-gate, .hub-company-contact
      ) *,
      .visually-hidden, .sr-only, #poptavka-prechodu
    )),
    main .intent-navigation h2 {
      font-size: var(--cezar-mobile-chapter-heading) !important;
      line-height: 1.1 !important;
      overflow-wrap: anywhere;
      -webkit-text-size-adjust: 100% !important;
      text-size-adjust: 100% !important;
    }

    /* Delší nadpis ISDOC se v mobilní šířce nemusí vejít na dva řádky. */
    .isdoc-site #prijem h2,
    .isdoc-site #prijem h2 span {
      white-space: normal !important;
    }

    main :is(section, article.article-content) :is(
      .eyebrow, .kicker, .section-kicker, .deployment-kicker,
      .cfaq-kicker, .cezar-strengths-kicker, .remote-eyebrow, .result-kicker
    ):has(+ h2):not(:where(
      :is(
        aside, form, dialog, [role="dialog"], nav, noscript, template,
        article:not(.article-content), section#top, section.hero,
        section[class$="-hero"], section[class*="-hero "],
        #obj, #objednavka, #poptavka, .inquiry-section, .order-section, .mm-order-section,
        .ap-form-card, .access-gate, .hub-company-contact
      ) *
    )) {
      font-size: var(--cezar-mobile-chapter-label) !important;
      letter-spacing: 0.09em !important;
      -webkit-text-size-adjust: 100% !important;
      text-size-adjust: 100% !important;
    }

    main :is(.section-heading, .mm-section-heading, .deployment-heading,
      .cezar-strengths-heading, .faq-intro, .cfaq-heading, .faq-heading):has(h2) > p:not(:where(
      aside *, form *, dialog *, [role="dialog"] *, nav *, .hero *, .inquiry-section *, .mm-order-section *
    )) {
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }
  }
}
