/* Nord SaaS Lite — Title-only headers (2026-10-14)
   Apply only to page headings and the top strip of dialogs.
   Form help, body explanations, alerts, footers and action buttons stay intact. */

/* Static and dynamically rendered public/workspace pages. */
:is(.page-head,.managed-page-head,.custom-bots-head,.discord-tools-head,
    .security-page-head,.messages-page-head,.wl-page-head,.cnx-page-head,
    .nord-hub-page-head,.nh-top)
  :is(.page-kicker,.nh-kicker){display:none!important}

:is(.page-head,.managed-page-head,.custom-bots-head,.discord-tools-head,
    .security-page-head,.messages-page-head,.wl-page-head,.cnx-page-head,
    .nord-hub-page-head,.nh-top)
  > div:first-child > p{display:none!important}

:is(.page-head,.managed-page-head,.custom-bots-head,.discord-tools-head,
    .security-page-head,.messages-page-head,.wl-page-head,.cnx-page-head,
    .nord-hub-page-head,.nh-top)
  > p{display:none!important}

/* Content underneath page titles must not retain spacing for hidden text. */
:is(.page-head,.managed-page-head,.custom-bots-head,.discord-tools-head,
    .security-page-head,.messages-page-head,.wl-page-head,.cnx-page-head,
    .nord-hub-page-head,.nh-top) h1,
:is(.page-head,.managed-page-head,.custom-bots-head,.discord-tools-head,
    .security-page-head,.messages-page-head,.wl-page-head,.cnx-page-head,
    .nord-hub-page-head,.nh-top) h2{margin-top:0!important}

/* Dialog topbars: title + essential controls (close, back, etc.).
   Never hide content, descriptions or warnings outside the header. */
:is(.modal-head,.messages-modal-head,.cnx-modal-head,.nca-modal-head,
    .forge-modal-head,.nh-dialog>header) :is(
    p,small,.modal-help,[class*="-modal-kicker"],[class*="-modal-subtitle"],
    [class*="-modal-eyebrow"],.messages-card-icon,.fivem-modal-icon,
    .nh-big-icon){display:none!important}

/* Also cover modal implementations whose topbars use an explicit header class. */
:is(.modal-head,.messages-modal-head,.cnx-modal-head,.nca-modal-head,
    .forge-modal-head,.nh-dialog>header) :is(h1,h2,h3,h4){
  margin-top:0!important;
  margin-bottom:0!important;
}

/* Modern live page layouts that render a nested title wrapper. */
.cnx-page-head .cnx-page-title>p{display:none!important}
.cnx-page-head .cnx-page-title>.page-kicker{display:none!important}

/* Narrow screens still retain close buttons and page actions. */
@media(max-width:720px){
  :is(.page-head,.managed-page-head,.custom-bots-head,.discord-tools-head,
      .security-page-head,.messages-page-head,.wl-page-head,.cnx-page-head,
      .nord-hub-page-head,.nh-top){align-items:center}
}

/* Developer Forge, shops, Sports News and future page-head variants. */
:is(.forge-head,.sports-page-head,.nord-hub-hero,[class*="-page-head"])
  :is(.forge-kicker,.sports-kicker,.nord-hub-kicker,.page-kicker,[class$="-kicker"]){
  display:none!important;
}
:is(.forge-head,.sports-page-head,.nord-hub-hero,[class*="-page-head"])
  > div:first-child > p{display:none!important}
:is(.forge-head,.sports-page-head,.nord-hub-hero,[class*="-page-head"])
  > div:first-child > :is(h1,h2){margin-top:0!important}
:is(.forge-head,.sports-page-head,.nord-hub-hero,[class*="-page-head"])
  > p{display:none!important}

/* Dialogs generated on demand by Forge, Nexus, bots and other modules. */
:is([class*="-modal-head"],[class*="-dialog-head"]) :is(
    p,small,[class*="-kicker"],[class*="-subtitle"],[class*="-eyebrow"]){
  display:none!important;
}
:is([class*="-modal-head"],[class*="-dialog-head"]) :is(h1,h2,h3,h4){
  margin-block:0!important;
}
