/* Shared opening typography for the five client pages only.
   Keep the existing Cormorant faces: upright SemiBold and real Regular Italic. */
@layer impulsio-client-titles {
  :is(
    body.minimal-page #publish-title,
    #impulsio-home .home-headline,
    .workspace-header[data-client-header] + div > h1,
    .mp-main .mp-marketplace-title,
    .referral-page-heading > div > h1
  ),
  :is(body.minimal-page #publish-title, #impulsio-home .home-headline) * {
    font-family:'Cormorant Garamond', Georgia, serif !important;
    font-size:42px !important;
    font-weight:600 !important;
    font-style:normal !important;
    line-height:1.15 !important;
    letter-spacing:-.025em !important;
    margin-block:0 !important;
    text-transform:none !important;
  }

  :is(
    body.minimal-page #publishing .feature-copy > .section-description:first-of-type,
    #impulsio-home .home-lead > span:first-child,
    .workspace-overview-heading .workspace-heading-copy > p,
    .mp-page-head:has(.mp-marketplace-title) > div > h2,
    .referral-page-heading .referral-page-tagline
  ) {
    font-family:'Cormorant Garamond', Georgia, serif !important;
    font-size:26px !important;
    font-weight:400 !important;
    font-style:italic !important;
    line-height:1.4 !important;
    letter-spacing:.005em !important;
    text-transform:none !important;
  }

  /* Navigation already supplies the common title baseline (152px desktop).
     Advertising needs a 12px gap; Home needs no extra inset inside its grid. */
  body.minimal-page #publishing { padding-top:12px !important; }
  body.minimal-page #publishing > #workspace { align-items:start !important; }
  #impulsio-home #home-hero .impulsio-hero-content {
    padding-top:0 !important;
    justify-content:flex-start !important;
  }

  @media (min-width:768px) and (max-width:1100px) {
    .mp-main:has(.mp-marketplace-title) { padding-top:32px !important; }
  }

  @media (min-width:640px) and (max-width:767px) {
    .workspace-header[data-client-header] + div:has(> h1) { padding-top:24px !important; }
  }

  @media (max-width:767px) {
    :is(
      body.minimal-page #publish-title,
      #impulsio-home .home-headline,
      .workspace-header[data-client-header] + div > h1,
      .mp-main .mp-marketplace-title,
      .referral-page-heading > div > h1
    ),
    :is(body.minimal-page #publish-title, #impulsio-home .home-headline) * {
      font-size:34px !important;
    }
    :is(
      body.minimal-page #publishing .feature-copy > .section-description:first-of-type,
      #impulsio-home .home-lead > span:first-child,
      .workspace-overview-heading .workspace-heading-copy > p,
      .mp-page-head:has(.mp-marketplace-title) > div > h2,
      .referral-page-heading .referral-page-tagline
    ) { font-size:22px !important; }
  }
}
