/* Shared third/fourth-row page heading for Home, Card and Manage.
   The canonical two-row account/navigation header stays unchanged.
   This component always sits outside the two-column content panels. */
body:is(.nc-home, .nc-public, .nc-admin) .nc-page-heading {
  box-sizing: border-box;
  width: min(var(--nc-page-width), calc(100% - var(--nc-page-inset)));
  max-width: var(--nc-page-width);
  min-height: 82px;
  margin: 0 auto 16px;
  padding: 2px 0 8px;
  font-family: var(--nc-ds-font, Arial, sans-serif);
  text-align: left;
}
body:is(.nc-home, .nc-public, .nc-admin) .nc-page-heading-title {
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-family: inherit;
  font-size: 24px !important;
  font-weight: 700;
  line-height: 1.35;
  text-align: left !important;
  letter-spacing: -0.4px;
  color: var(--nc-ds-text, #263445);
}
body:is(.nc-home, .nc-public, .nc-admin) .nc-page-heading-description {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--nc-ds-muted, #64748b);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.nc-page-heading-email { color: var(--nc-ds-text, #263445); font-weight: 600; }
/* The admin auth gate still controls whether any owner-specific UI is shown. */
body.nc-admin[data-auth-pending] .nc-page-heading { display: none !important; }
/* Legacy editor JavaScript uses cardAccountEmail and logoutButton;
   retain those nodes without duplicating the shared top account row. */
body.nc-admin .nc-account-bar { display: none !important; }
body.nc-home .nc-home-entry .nc-brand { margin-bottom: 24px; }
@media (max-width: 599px) {
  body:is(.nc-home, .nc-public, .nc-admin) .nc-page-heading { min-height: 78px; }
  body:is(.nc-home, .nc-public, .nc-admin) .nc-page-heading-title { font-size: 22px !important; }
}
